Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.media.mn8.util.tar
Class TarInputStream  view TarInputStream download TarInputStream.java

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.media.mn8.util.tar.TarInputStream
All Implemented Interfaces:
java.io.Closeable

public class TarInputStream
extends java.io.FilterInputStream

Version:
$Revision: 1.1 $ $Date: 2002/02/27 19:09:47 $

Field Summary
protected  TarBuffer buffer
           
protected  TarEntry currEntry
           
protected  int entryOffset
           
protected  int entrySize
           
protected  boolean hasEOF
           
protected  byte[] oneBuf
           
protected  byte[] readBuf
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
TarInputStream(java.io.InputStream is)
           
 
Method Summary
 int available()
          Calls the in.available() method.
 void close()
          This method closes the input stream by closing the input stream that this object is filtering.
 TarEntry getNextEntry()
           
 int getRecordSize()
           
 int read()
          Calls the in.read() method
 int read(byte[] buf)
          Calls the read(byte[], int, int) overloaded method.
 int read(byte[] buf, int offset, int length)
          Calls the in.read(byte[], int, int) method.
 void skip(int nSkip)
           
 
Methods inherited from class java.io.FilterInputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected TarBuffer buffer

readBuf

protected byte[] readBuf

oneBuf

protected byte[] oneBuf

hasEOF

protected boolean hasEOF

currEntry

protected TarEntry currEntry

entrySize

protected int entrySize

entryOffset

protected int entryOffset
Constructor Detail

TarInputStream

public TarInputStream(java.io.InputStream is)
Method Detail

getRecordSize

public int getRecordSize()

available

public int available()
              throws java.io.IOException
Description copied from class: java.io.FilterInputStream
Calls the in.available() method.


close

public void close()
           throws java.io.IOException
Description copied from class: java.io.FilterInputStream
This method closes the input stream by closing the input stream that this object is filtering. Future attempts to access this stream may throw an exception.


skip

public void skip(int nSkip)
          throws java.io.IOException

read

public int read()
         throws java.io.IOException
Description copied from class: java.io.FilterInputStream
Calls the in.read() method


read

public int read(byte[] buf)
         throws java.io.IOException
Description copied from class: java.io.FilterInputStream
Calls the read(byte[], int, int) overloaded method. Note that this method does not redirect its call directly to a corresponding method in in. This allows subclasses to override only the three argument version of read.


read

public int read(byte[] buf,
                int offset,
                int length)
         throws java.io.IOException
Description copied from class: java.io.FilterInputStream
Calls the in.read(byte[], int, int) method.


getNextEntry

public TarEntry getNextEntry()
                      throws java.io.IOException