|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eap.tar.TarHeader
Holds information about a single entry in a tar file. Each entry in a tar file has a 512 byte header describing the entry. The end of a tar file is marked by two consecutive 512 byte blocks which are all set to zero.
Field Summary | |
static int |
BLOCK_SPECIAL_DEV_TYPE
|
static int |
CHARACTER_SPECIAL_DEV_TYPE
|
static int |
DIRECTORY_TYPE
|
static int |
FIFO_TYPE
|
static int |
FILE_TYPE
|
static int |
HARD_LINK_TYPE
|
static int |
SYMBOLIC_LINK_TYPE
|
Constructor Summary | |
TarHeader()
Create a new header. |
Method Summary | |
String |
getFormat()
Returns the format of this tar file. |
String |
getName()
Returns the name of the tar entry. |
long |
getSize()
Returns the number of bytes in the tar entry. |
boolean |
isDirectory()
Returns true if the entry is a directory. |
boolean |
isEOF()
Returns true if the header is actuall the all zero EOF marker at the end of a tar. |
boolean |
isFile()
Returns true if the entry is a regular file. |
void |
read(InputStream in)
Read the contents of this header from a data stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FILE_TYPE
public static final int HARD_LINK_TYPE
public static final int SYMBOLIC_LINK_TYPE
public static final int CHARACTER_SPECIAL_DEV_TYPE
public static final int BLOCK_SPECIAL_DEV_TYPE
public static final int DIRECTORY_TYPE
public static final int FIFO_TYPE
Constructor Detail |
public TarHeader()
read(InputStream)
method before it can be used.
Method Detail |
public String getName()
public long getSize()
public String getFormat()
public boolean isDirectory()
public boolean isFile()
public boolean isEOF()
public void read(InputStream in) throws IOException
in
- The stream from which to read the header.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |