|
RSE Release 3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.rse.services.clientserver.archiveutils.TarFile
public class TarFile
This class is used to read entries from a tar file.
| 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. |
protected InputStream |
getInputStream()
Gets the input stream for the tar file. |
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 |
|---|
protected InputStream getInputStream()
throws FileNotFoundException
FileNotFoundException - if the file does not exist.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 3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||