|
RSE Release 3.3 |
|||||||||
| 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(java.io.File file)
Opens a tar file for reading given the specified File object. |
|
TarFile(java.lang.String name)
Opens a tar file for reading given the file name. |
|
| Method Summary | |
|---|---|
java.util.Enumeration |
entries()
Returns an enumeration of the tar file entries. |
TarEntry |
getEntry(java.lang.String name)
Returns the tar file entry with that name, or null if not found. |
protected java.io.InputStream |
getInputStream()
Gets the input stream for the tar file. |
java.io.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(java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException
file - the tar file to be opened for reading.
java.io.FileNotFoundException - if the file does not exist.
java.io.IOException - if an I/O error occurs.
public TarFile(java.lang.String name)
throws java.io.FileNotFoundException,
java.io.IOException
name - the name of the tar file to be opened for reading.
java.io.FileNotFoundException - if the file with the given name does not exist.
java.io.IOException - if an I/O error occurs.| Method Detail |
|---|
protected java.io.InputStream getInputStream()
throws java.io.FileNotFoundException
java.io.FileNotFoundException - if the file does not exist.public java.util.Enumeration entries()
public int size()
public TarEntry getEntry(java.lang.String name)
null if not found.
name - the name of the entry.
null if not found.
public java.io.InputStream getInputStream(TarEntry entry)
throws java.io.IOException
entry - the entry.
java.io.IOException - if an I/O error occurs.
|
RSE Release 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||