java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.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 $
|
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TarInputStream
public TarInputStream(java.io.InputStream is)
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