g-Eclipse
Release 1.0.0

eu.geclipse.core.util.tar
Class TarInputStream

java.lang.Object
  extended by eu.geclipse.core.util.tar.TarInputStream

public class TarInputStream
extends java.lang.Object

This class provides tar extraction capabilities. It does not extend InputStream.


Constructor Summary
TarInputStream(java.io.InputStream inStream)
          Creates a new TarInputStream instance, for reading a tar file.
 
Method Summary
 void copyEntryContents(java.io.OutputStream outStream)
          Copy the contents of the entry to the given output stream.
 TarEntry getNextEntry()
          Gets the next entry in the tar archive.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TarInputStream

public TarInputStream(java.io.InputStream inStream)
Creates a new TarInputStream instance, for reading a tar file.

Parameters:
inStream - The InputStream to read from
Method Detail

getNextEntry

public TarEntry getNextEntry()
                      throws ProblemException
Gets the next entry in the tar archive.

Returns:
A TarEntry object, the next entry in the tar
Throws:
ProblemException - if some issue was found reading the tar stream

copyEntryContents

public void copyEntryContents(java.io.OutputStream outStream)
                       throws ProblemException
Copy the contents of the entry to the given output stream.

Throws:
ProblemException - if some issue was found reading the tar stream

g-Eclipse
Release 1.0.0