public class CompressorStreamDeflater extends CompressorStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf1 |
protected Deflater |
deflater |
protected boolean |
deflaterIsOwn |
block, blockLen, bytesIn, bytesOut, done, idatChunkWriter, storeFirstByte, totalbytes
Constructor and Description |
---|
CompressorStreamDeflater(IDatChunkWriter idatCw,
int maxBlockLen,
long totalLen) |
CompressorStreamDeflater(IDatChunkWriter idatCw,
int maxBlockLen,
long totalLen,
Deflater def)
if a deflater is passed, it must be already reset.
|
CompressorStreamDeflater(IDatChunkWriter idatCw,
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[] data,
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() |
getBytesCompressed, getBytesRaw, getCompressionRatio, getFirstBytes, isClosed, isDone, setStoreFirstByte, write, write, write
flush
protected Deflater deflater
protected byte[] buf1
protected boolean deflaterIsOwn
public CompressorStreamDeflater(IDatChunkWriter idatCw, int maxBlockLen, long totalLen, Deflater def)
public CompressorStreamDeflater(IDatChunkWriter idatCw, int maxBlockLen, long totalLen)
public CompressorStreamDeflater(IDatChunkWriter idatCw, int maxBlockLen, long totalLen, int deflaterCompLevel, int deflaterStrategy)
public void mywrite(byte[] data, int off, int len)
CompressorStream
mywrite
in class CompressorStream
protected void deflate()
public void done()
done
in class CompressorStream
public void close()
CompressorStream
close
in interface Closeable
close
in interface AutoCloseable
close
in class CompressorStream
public void reset()
reset
in class CompressorStream
Copyright © 2014. All rights reserved.