Java Doc for TarHeader.java in  » Swing-Library » jEdit » installer » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » jEdit » installer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   installer.TarHeader

TarHeader
public class TarHeader extends Object (Code)
This class encapsulates the Tar Entry Header used in Tar Archives. The class also holds a number of tar constants, used mostly in headers.


Field Summary
final public static  intCHKSUMLEN
     The length of the checksum field in a header buffer.
final public static  intDEVLEN
     The length of the devices field in a header buffer.
final public static  intGIDLEN
     The length of the group id field in a header buffer.
final public static  intGNAMELEN
     The length of the group name field in a header buffer.
final public static  StringGNU_TMAGIC
     The magic tag representing a GNU tar archive.
final public static  byteLF_BLK
     Block device file type.
final public static  byteLF_CHR
     Character device file type.
final public static  byteLF_CONTIG
     Contiguous file type.
final public static  byteLF_DIR
     Directory file type.
final public static  byteLF_FIFO
     FIFO (pipe) file type.
final public static  byteLF_LINK
     Link file type.
final public static  byteLF_NORMAL
     Normal file type.
final public static  byteLF_OLDNORM
     LF_ constants represent the "link flag" of an entry, or more commonly, the "entry type".
final public static  byteLF_SYMLINK
     Symbolic link file type.
final public static  intMAGICLEN
     The length of the magic field in a header buffer.
final public static  intMODELEN
     The length of the mode field in a header buffer.
final public static  intMODTIMELEN
     The length of the modification time field in a header buffer.
final public static  intNAMELEN
     The length of the name field in a header buffer.
final public static  intSIZELEN
     The length of the size field in a header buffer.
final public static  StringTMAGIC
     The magic tag representing a POSIX tar archive.
final public static  intUIDLEN
     The length of the user id field in a header buffer.
final public static  intUNAMELEN
     The length of the user name field in a header buffer.
public  intcheckSum
     The entry's checksum.
public  intdevMajor
     The entry's major device number.
public  intdevMinor
     The entry's minor device number.
public  intgroupId
     The entry's group id.
public  StringBuffergroupName
     The entry's group name.
public  bytelinkFlag
     The entry's link flag.
public  StringBufferlinkName
     The entry's link name.
public  StringBuffermagic
     The entry's magic tag.
public  longmodTime
     The entry's modification time.
public  intmode
     The entry's permission mode.
public  StringBuffername
     The entry's name.
public  longsize
     The entry's size.
public  intuserId
     The entry's user id.
public  StringBufferuserName
     The entry's user name.

Constructor Summary
public  TarHeader()
    

Method Summary
public  Objectclone()
     TarHeaders can be cloned.
public static  intgetCheckSumOctalBytes(long value, byte[] buf, int offset, int length)
     Parse the checksum octal integer from a header buffer.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse.
public static  intgetLongOctalBytes(long value, byte[] buf, int offset, int length)
     Parse an octal long integer from a header buffer.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse.
public  StringgetName()
     Get the name of this entry.
public static  intgetNameBytes(StringBuffer name, byte[] buf, int offset, int length)
     Determine the number of bytes in an entry name.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse.
public static  intgetOctalBytes(long value, byte[] buf, int offset, int length)
     Parse an octal integer from a header buffer.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse.
public static  StringBufferparseName(byte[] header, int offset, int length)
     Parse an entry name from a header buffer.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse.
public static  longparseOctal(byte[] header, int offset, int length)
     Parse an octal string from a header buffer.

Field Detail
CHKSUMLEN
final public static int CHKSUMLEN(Code)
The length of the checksum field in a header buffer.



DEVLEN
final public static int DEVLEN(Code)
The length of the devices field in a header buffer.



GIDLEN
final public static int GIDLEN(Code)
The length of the group id field in a header buffer.



GNAMELEN
final public static int GNAMELEN(Code)
The length of the group name field in a header buffer.



GNU_TMAGIC
final public static String GNU_TMAGIC(Code)
The magic tag representing a GNU tar archive.



LF_BLK
final public static byte LF_BLK(Code)
Block device file type.



LF_CHR
final public static byte LF_CHR(Code)
Character device file type.



LF_CONTIG
final public static byte LF_CONTIG(Code)
Contiguous file type.



LF_DIR
final public static byte LF_DIR(Code)
Directory file type.



LF_FIFO
final public static byte LF_FIFO(Code)
FIFO (pipe) file type.



LF_LINK
final public static byte LF_LINK(Code)
Link file type.



LF_NORMAL
final public static byte LF_NORMAL(Code)
Normal file type.



LF_OLDNORM
final public static byte LF_OLDNORM(Code)
LF_ constants represent the "link flag" of an entry, or more commonly, the "entry type". This is the "old way" of indicating a normal file.



LF_SYMLINK
final public static byte LF_SYMLINK(Code)
Symbolic link file type.



MAGICLEN
final public static int MAGICLEN(Code)
The length of the magic field in a header buffer.



MODELEN
final public static int MODELEN(Code)
The length of the mode field in a header buffer.



MODTIMELEN
final public static int MODTIMELEN(Code)
The length of the modification time field in a header buffer.



NAMELEN
final public static int NAMELEN(Code)
The length of the name field in a header buffer.



SIZELEN
final public static int SIZELEN(Code)
The length of the size field in a header buffer.



TMAGIC
final public static String TMAGIC(Code)
The magic tag representing a POSIX tar archive.



UIDLEN
final public static int UIDLEN(Code)
The length of the user id field in a header buffer.



UNAMELEN
final public static int UNAMELEN(Code)
The length of the user name field in a header buffer.



checkSum
public int checkSum(Code)
The entry's checksum.



devMajor
public int devMajor(Code)
The entry's major device number.



devMinor
public int devMinor(Code)
The entry's minor device number.



groupId
public int groupId(Code)
The entry's group id.



groupName
public StringBuffer groupName(Code)
The entry's group name.



linkFlag
public byte linkFlag(Code)
The entry's link flag.



linkName
public StringBuffer linkName(Code)
The entry's link name.



magic
public StringBuffer magic(Code)
The entry's magic tag.



modTime
public long modTime(Code)
The entry's modification time.



mode
public int mode(Code)
The entry's permission mode.



name
public StringBuffer name(Code)
The entry's name.



size
public long size(Code)
The entry's size.



userId
public int userId(Code)
The entry's user id.



userName
public StringBuffer userName(Code)
The entry's user name.




Constructor Detail
TarHeader
public TarHeader()(Code)




Method Detail
clone
public Object clone()(Code)
TarHeaders can be cloned.



getCheckSumOctalBytes
public static int getCheckSumOctalBytes(long value, byte[] buf, int offset, int length)(Code)
Parse the checksum octal integer from a header buffer.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse. The integer value of the entry's checksum.



getLongOctalBytes
public static int getLongOctalBytes(long value, byte[] buf, int offset, int length)(Code)
Parse an octal long integer from a header buffer.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse. The long value of the octal bytes.



getName
public String getName()(Code)
Get the name of this entry. Teh entry's name.



getNameBytes
public static int getNameBytes(StringBuffer name, byte[] buf, int offset, int length)(Code)
Determine the number of bytes in an entry name.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse. The number of bytes in a header's entry name.



getOctalBytes
public static int getOctalBytes(long value, byte[] buf, int offset, int length)(Code)
Parse an octal integer from a header buffer.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse. The integer value of the octal bytes.



parseName
public static StringBuffer parseName(byte[] header, int offset, int length) throws InvalidHeaderException(Code)
Parse an entry name from a header buffer.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse. The header's entry name.



parseOctal
public static long parseOctal(byte[] header, int offset, int length) throws InvalidHeaderException(Code)
Parse an octal string from a header buffer. This is used for the file permission mode value.
Parameters:
  header - The header buffer from which to parse.
Parameters:
  offset - The offset into the buffer from which to parse.
Parameters:
  length - The number of header bytes to parse. The long value of the octal string.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.