|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.xeustechnologies.jtar.TarInputStream
public class TarInputStream
| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
TarInputStream(java.io.InputStream in)
|
|
| Method Summary | |
|---|---|
protected void |
closeCurrentEntry()
Closes the current tar entry |
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 |
| Methods inherited from class java.io.FilterInputStream |
|---|
available, close, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TarInputStream(java.io.InputStream in)
| Method Detail |
|---|
public boolean markSupported()
markSupported in class java.io.FilterInputStreampublic void mark(int readlimit)
mark in class java.io.FilterInputStream
public void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOException
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionFilterInputStream.read()
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionFilterInputStream.read(byte[], int, int)
public TarEntry getNextEntry()
throws java.io.IOException
java.io.IOException
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.FilterInputStreamjava.io.IOExceptionpublic boolean isDefaultSkip()
public void setDefaultSkip(boolean defaultSkip)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||