public class CompressorStreamLz4 extends CompressorStream
block, blockLen, bytesIn, bytesOut, done, os, storeFirstByte, totalbytesout| Constructor and Description |
|---|
CompressorStreamLz4(OutputStream os,
int maxBlockLen,
long totalLen) |
CompressorStreamLz4(OutputStream os,
int maxBlockLen,
long totalLen,
Deflater def) |
CompressorStreamLz4(OutputStream os,
int maxBlockLen,
long totalLen,
int deflaterCompLevel,
int deflaterStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases resources.
|
void |
done()
Will be called automatically when the number of bytes reaches the total expected Can be also be
called from outside.
|
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, writepublic CompressorStreamLz4(OutputStream os, int maxBlockLen, long totalLen)
public CompressorStreamLz4(OutputStream os, int maxBlockLen, long totalLen, Deflater def)
public CompressorStreamLz4(OutputStream os, int maxBlockLen, long totalLen, int deflaterCompLevel, int deflaterStrategy)
public void mywrite(byte[] b,
int off,
int len)
CompressorStreammywrite in class CompressorStreampublic void done()
CompressorStreamdone 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.