|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
TSDeCompInputStream
class TSDeCompInputStream
.
====================================================================== Class TSDeCompInputStream -- Decompress data while reading. Attention: This class replaces class 'InflaterInputStream', which provides a too small input-buffer. However, not all methods of the original class are also implemented within the replacement-class. ##TSDeCompInputStream (Eyecatcher) ======================================================================
Field Summary | |
---|---|
private byte[] |
buffer
|
private java.util.zip.Inflater |
cInf
|
private boolean |
closed
|
private boolean |
eof
|
protected static java.lang.String |
IdStr
|
private byte[] |
sglBuf
|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
protected |
TSDeCompInputStream(java.io.InputStream IS)
. |
protected |
TSDeCompInputStream(java.io.InputStream IS,
int bl)
. |
Method Summary | |
---|---|
void |
close()
. |
int |
read()
. |
int |
read(byte[] io,
int off,
int len)
. |
int |
readSize(int sz,
int sf)
. |
Methods inherited from class java.io.FilterInputStream |
---|
available, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String IdStr
private java.util.zip.Inflater cInf
private volatile byte[] buffer
private volatile byte[] sglBuf
private boolean closed
private boolean eof
Constructor Detail |
---|
protected TSDeCompInputStream(java.io.InputStream IS)
===================================================================== Constructor: (1) Create Default-Entry =====================================================================
protected TSDeCompInputStream(java.io.InputStream IS, int bl)
===================================================================== Constructor: (2) Create Standard-Entry =====================================================================
Method Detail |
---|
public void close() throws java.io.IOException
===================================================================== Method "close" Closes this input stream and releases any system resources associated with the stream.
close
in interface java.io.Closeable
close
in class java.io.FilterInputStream
java.io.IOException
- if an I/O error has occurred
##close.TSDeCompInputStream (Eyecatcher)
=====================================================================
public int read() throws java.io.IOException
===================================================================== Method "read" Return single uncompressed byte from input.
read
in class java.io.FilterInputStream
java.io.IOException
- if an I/O error has occurred
##read.TSDeCompInputStream (Eyecatcher)
=====================================================================
public int read(byte[] io, int off, int len) throws java.io.IOException
===================================================================== Method "read" Reads uncompressed data into an array of bytes
read
in class java.io.FilterInputStream
java.io.IOException
- if an I/O error has occurred
##read.TSDeCompInputStream (Eyecatcher)
=====================================================================
public int readSize(int sz, int sf)
===================================================================== Method "readSize" Change size of internal buffer, which is used for providing data to the Inflater. The internal buffersize is computed according to: - Select integer n from (1..30) so that 2**n > (sz/sf) >= 2**(n-1) - Use max(2**n, 512) as internal buffersize. ##readSize.TSDeCompInputStream (Eyecatcher) =====================================================================
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |