public class TarInputStream
extends java.io.FilterInputStream
Constructor and Description |
---|
TarInputStream(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeCurrentEntry()
Closes the current tar entry
|
long |
getCurrentOffset()
Returns the current offset (in bytes) from the beginning of the stream.
|
TarEntry |
getNextEntry()
Returns the next entry in the tar file
|
boolean |
isDefaultSkip() |
void |
mark(int readlimit)
Not supported
|
boolean |
markSupported() |
int |
read()
Read a byte
|
int |
read(byte[] b,
int off,
int len)
Checks if the bytes being read exceed the entry size and adjusts the byte
array length.
|
void |
reset()
Not supported
|
void |
setDefaultSkip(boolean defaultSkip) |
long |
skip(long n)
Skips 'n' bytes on the InputStream
Overrides default implementation of skip |
protected void |
skipPad()
Skips the pad at the end of each tar entry file content
|
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public void mark(int readlimit)
mark
in class java.io.FilterInputStream
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
FilterInputStream.read()
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
FilterInputStream.read(byte[], int, int)
public TarEntry getNextEntry() throws java.io.IOException
java.io.IOException
public long getCurrentOffset()
protected void closeCurrentEntry() throws java.io.IOException
java.io.IOException
protected void skipPad() throws java.io.IOException
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public boolean isDefaultSkip()
public void setDefaultSkip(boolean defaultSkip)