public class CompressorStreamDeflater extends CompressorStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected Deflater |
deflater |
protected boolean |
deflaterIsOwn |
block, blockLen, bytesIn, bytesOut, done, os, storeFirstByte, totalbytesout| Constructor and Description |
|---|
CompressorStreamDeflater(OutputStream os,
int maxBlockLen,
long totalLen) |
CompressorStreamDeflater(OutputStream os,
int maxBlockLen,
long totalLen,
Deflater def)
if a deflater is passed, it must be already reset.
|
CompressorStreamDeflater(OutputStream os,
int maxBlockLen,
long totalLen,
int deflaterCompLevel,
int deflaterStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases resources.
|
protected void |
deflate() |
void |
done()
automatically called when done
|
void |
mywrite(byte[] b,
int off,
int len)
same as write, but guarantedd to not exceed blockLen The implementation should update bytesOut
and bytesInt but not check for totalBytes
|
void |
reset() |
flush, getBytesCompressed, getBytesRaw, getCompressionRatio, getFirstBytes, getOs, isClosed, isDone, reset, setStoreFirstByte, write, write, writeprotected Deflater deflater
protected byte[] buf
protected boolean deflaterIsOwn
public CompressorStreamDeflater(OutputStream os, int maxBlockLen, long totalLen)
public CompressorStreamDeflater(OutputStream os, int maxBlockLen, long totalLen, Deflater def)
public CompressorStreamDeflater(OutputStream os, int maxBlockLen, long totalLen, int deflaterCompLevel, int deflaterStrategy)
public void mywrite(byte[] b,
int off,
int len)
CompressorStreammywrite in class CompressorStreamprotected void deflate()
public void done()
done in class CompressorStreampublic void close()
CompressorStreamclose in interface Closeableclose in interface AutoCloseableclose in class CompressorStreampublic void reset()
reset in class CompressorStreamCopyright © 2014. All rights reserved.