|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.util.zip.InflaterInputStream
org.hd.d.pg2k.svrCore.DefInputStream
public final class DefInputStream
Like GZIPInputStream but no GZIP or ZLIB header or checksum. This is meant to give maximum compression and assumes error checking/recovery is done elsewhere.
| Field Summary | |
|---|---|
private boolean |
closed
Is the stream already closed? |
private boolean |
eos
Indicates end of input stream. |
| Fields inherited from class java.util.zip.InflaterInputStream |
|---|
buf, inf, len |
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
DefInputStream(java.io.InputStream in)
Creates a new input stream with a default buffer size. |
|
DefInputStream(java.io.InputStream in,
boolean hasDummyTrailingByte)
Creates a new input stream with the specified buffer size. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the input stream and releases non-Java resources. |
private void |
ensureOpen()
Check to make sure that this stream has not been closed. |
int |
read(byte[] buf,
int off,
int len)
Reads uncompressed data into an array of bytes. |
| Methods inherited from class java.util.zip.InflaterInputStream |
|---|
available, fill, mark, markSupported, read, reset, skip |
| Methods inherited from class java.io.FilterInputStream |
|---|
read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean eos
private boolean closed
| Constructor Detail |
|---|
public DefInputStream(java.io.InputStream in,
boolean hasDummyTrailingByte)
throws java.io.IOException
in - the input streamhasDummyTrailingByte - if true then the input stream has
one or more bytes of trailing data that ZLIB can eat harmlessly
java.io.IOException - if an I/O error has occurred
public DefInputStream(java.io.InputStream in)
throws java.io.IOException
in - the input stream
java.io.IOException - if an I/O error has occurred| Method Detail |
|---|
private void ensureOpen()
throws java.io.IOException
java.io.IOException
public int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read in class java.util.zip.InflaterInputStreamjava.io.IOException - if an I/O error has occurred or the compressed
input data is corrupt
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.util.zip.InflaterInputStreamjava.io.IOException - if an I/O error has occurred
|
DHD Multimedia Gallery V1.50.55 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||