|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--java.io.FilterOutputStream | +--java.util.zip.DeflaterOutputStream
Deflater
Field Summary | |
protected byte[] | buf
Output buffer for writing compressed data. |
protected Deflater | def
Compressor for this stream. |
Fields inherited from class java.io.FilterOutputStream | |
out |
Constructor Summary | |
DeflaterOutputStream(OutputStream out,
Deflater def,
int size)
Creates a new output stream with the specified compressor and buffer size. |
|
DeflaterOutputStream(OutputStream out,
Deflater def)
Creates a new output stream with the specified compressor and a default buffer size. |
|
DeflaterOutputStream(OutputStream out)
Creates a new output stream with a defaul compressor and buffer size. |
Method Summary | |
void | close()
Writes remaining compressed data to the output stream and closes the underlying stream. |
protected void | deflate()
Writes next block of compressed data to the output stream. |
void | finish()
Finishes writing compressed data to the output stream without closing the underlying stream. |
void | write(byte[] b,
int off,
int len)
Writes an array of bytes to the compressed output stream. |
void | write(int b)
Writes a byte to the compressed output stream. |
Methods inherited from class java.io.FilterOutputStream | |
flush , write |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Field Detail |
protected Deflater def
protected byte[] buf
Constructor Detail |
public DeflaterOutputStream(OutputStream out, Deflater def, int size)
out
- the output stream
def
- the compressor ("deflater")
len
- the output buffer sizepublic DeflaterOutputStream(OutputStream out, Deflater def)
out
- the output stream
def
- the compressor ("deflater")public DeflaterOutputStream(OutputStream out)
Method Detail |
public void write(int b) throws IOException
b
- the byte to be writtenpublic void write(byte[] b, int off, int len) throws IOException
buf
- the data to be written
off
- the start offset of the data
len
- the length of the datapublic void finish() throws IOException
public void close() throws IOException
protected void deflate() throws IOException
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |