|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.util.Errorable
ewe.io.BasicStreamObject
ewe.io.StreamObject
ewe.zip.DeflaterOutputStream
| Field Summary | |
protected ByteArray |
byteIn
|
protected ByteArray |
byteOut
|
int |
inputBytes
The number of bytes written to the deflater. |
protected BasicStream |
output
|
int |
outputBytes
The number of bytes writeen out by the deflater. |
protected Object |
reserved
Don't use this. |
protected static int |
Z_BUF_ERROR
|
protected static int |
Z_DATA_ERROR
|
protected static int |
Z_ERRNO
|
protected static int |
Z_MEM_ERROR
|
protected static int |
Z_NEED_DICT
|
protected static int |
Z_OK
|
protected static int |
Z_STREAM_END
|
protected static int |
Z_STREAM_ERROR
|
protected static int |
Z_VERSION_ERROR
|
| Fields inherited from class ewe.io.StreamObject |
napIterations, napTime, READWRITE_CLOSED, READWRITE_ERROR, READWRITE_WOULDBLOCK |
| Fields inherited from class ewe.io.BasicStreamObject |
closed |
| Fields inherited from class ewe.util.Errorable |
error |
| Constructor Summary | |
DeflaterOutputStream(BasicStream output)
|
|
DeflaterOutputStream(BasicStream output,
int level)
|
|
DeflaterOutputStream(BasicStream output,
int level,
boolean noWrap)
|
|
DeflaterOutputStream(OutputStream output)
|
|
DeflaterOutputStream(OutputStream output,
int level,
boolean noWrap)
|
|
| Method Summary | |
boolean |
close()
Closes the stream. |
protected int |
deflate(ByteArray in,
ByteArray out,
boolean done)
|
protected int |
deflateEnd()
|
protected int |
deflateInit(int level,
boolean noWrap)
|
boolean |
flushStream()
This is non-blocking. |
int |
nonBlockingWrite(byte[] buff,
int start,
int count)
This is the non-blocking write operation. |
void |
setBufferSize(int size)
Don't call this after starting to write output! |
| Methods inherited from class ewe.io.StreamObject |
closeStream, doRead, doWrite, flush, isOpen, nap, nap, nonBlockingRead, read, readAByte, readBytes, readBytes, write, writeAByte, writeBytes, writeBytes |
| Methods inherited from class ewe.io.BasicStreamObject |
getException, getName, read, read, throwIOException, toInputStream, toOutputStream, toStream, write, write |
| Methods inherited from class ewe.util.Errorable |
returnError, returnError, returnError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
protected Object reserved
protected ByteArray byteIn
protected ByteArray byteOut
protected BasicStream output
public int inputBytes
public int outputBytes
protected static final int Z_OK
protected static final int Z_STREAM_END
protected static final int Z_NEED_DICT
protected static final int Z_ERRNO
protected static final int Z_STREAM_ERROR
protected static final int Z_DATA_ERROR
protected static final int Z_MEM_ERROR
protected static final int Z_BUF_ERROR
protected static final int Z_VERSION_ERROR
| Constructor Detail |
public DeflaterOutputStream(BasicStream output)
public DeflaterOutputStream(BasicStream output,
int level)
public DeflaterOutputStream(BasicStream output,
int level,
boolean noWrap)
public DeflaterOutputStream(OutputStream output)
public DeflaterOutputStream(OutputStream output,
int level,
boolean noWrap)
| Method Detail |
public void setBufferSize(int size)
protected int deflateInit(int level,
boolean noWrap)
protected int deflate(ByteArray in,
ByteArray out,
boolean done)
protected int deflateEnd()
public boolean close()
BasicStream
close in interface BasicStreamclose in class StreamObject
public boolean flushStream()
throws IOException
BasicStream
flushStream in interface BasicStreamIOException
public int nonBlockingWrite(byte[] buff,
int start,
int count)
StreamObjectThe default StreamObject implementation of this uses the single byte write() method.
nonBlockingWrite in interface BasicStreamnonBlockingWrite in class StreamObjectbuff - Source byte array holding data to be written.start - Starting index in buff for data to be written.count - Number of bytes to write - should never be zero.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||