|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.services.clientserver.util.tar.TarFile
This class is used to read entries from a tar file.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.rse.services.clientserver.util.tar.ITarConstants |
|---|
BLOCK_SIZE, CHKSUM_LENGTH, DEVMAJOR_LENGTH, DEVMINOR_LENGTH, GID_LENGTH, GNAME_LENGTH, HEADER_LENGTH, LINKNAME_LENGTH, MAGIC_LENGTH, MODE_LENGTH, MTIME_LENGTH, NAME_LENGTH, PREFIX_LENGTH, SEPARATOR_CHAR, SIZE_LENGTH, TF_BLOCK, TF_CHAR, TF_CONTIGUOUS, TF_DIR, TF_FIFO, TF_LINK, TF_NORMAL, TF_OLDNORMAL, TF_SYMLINK, TYPEFLAG_LENGTH, UID_LENGTH, UNAME_LENGTH, VERSION_LENGTH |
| Constructor Summary | |
|---|---|
TarFile(File file)
Opens a tar file for reading given the specified File object. |
|
TarFile(String name)
Opens a tar file for reading given the file name. |
|
| Method Summary | |
|---|---|
Enumeration |
entries()
Returns an enumeration of the tar file entries. |
TarEntry |
getEntry(String name)
Returns the tar file entry with that name, or null if not found. |
InputStream |
getInputStream(TarEntry entry)
Returns the input stream of the data in the given entry. |
int |
size()
Returns the number of entries in the tar file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TarFile(File file)
throws FileNotFoundException,
IOException
file - the tar file to be opened for reading.
FileNotFoundException - if the file does not exist.
IOException - if an I/O error occurs.
public TarFile(String name)
throws FileNotFoundException,
IOException
name - the name of the tar file to be opened for reading.
FileNotFoundException - if the file with the given name does not exist.
IOException - if an I/O error occurs.| Method Detail |
public Enumeration entries()
public int size()
public TarEntry getEntry(String name)
null if not found.
name - the name of the entry.
null if not found.
public InputStream getInputStream(TarEntry entry)
throws IOException
entry - the entry.
IOException - if an I/O error occurs.
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||