|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eap.tar.TarFile
Reads tar format file. It will read both he older BSD tar format as well as the newer POSIX "USTAR" format.
Field Summary | |
static int |
BLOCK_SIZE
The number of bytes in a tar block. |
Constructor Summary | |
TarFile(InputStream in)
Creates a new tar file which will read data from the given input stream. |
Method Summary | |
String |
getEntryName()
Returns the name of the current archive entry. |
InputStream |
getStream()
Returns a stream which will read the current file. |
TarHeader |
getTarHeader()
Returns the TarHeader object for the current entry. |
boolean |
hasNextEntry()
Checks if there are more entries in this archive. |
boolean |
isDirectory()
Tests if thecurrent entry is a directory |
boolean |
isFile()
Tests if the current entry is a regular file. |
void |
nextEntry()
Advances to the next entry in the archive. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BLOCK_SIZE
Constructor Detail |
public TarFile(InputStream in) throws IOException
in
- The source of the tar formatted data.Method Detail |
public void nextEntry() throws IOException
getStream()
.
nextEntry
in interface Archive
IOException
public boolean hasNextEntry()
hasNextEntry
in interface Archive
public String getEntryName()
getEntryName
in interface Archive
public boolean isDirectory()
isDirectory
in interface Archive
public boolean isFile()
isFile
in interface Archive
public TarHeader getTarHeader()
TarHeader
object for the current entry.
The header contains more information than is available through the
generic Archive
interface.
TarHeader
object for the current entry.public InputStream getStream()
nextEntry()
.
getStream
in interface Archive
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |