public class CompressorStreamLz4 extends CompressorStream
block, blockLen, bytesIn, bytesOut, done, idatChunkWriter, storeFirstByte, totalbytes
Constructor and Description |
---|
CompressorStreamLz4(IDatChunkWriter os,
int maxBlockLen,
long totalLen) |
CompressorStreamLz4(IDatChunkWriter os,
int maxBlockLen,
long totalLen,
Deflater def) |
CompressorStreamLz4(IDatChunkWriter 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() |
getBytesCompressed, getBytesRaw, getCompressionRatio, getFirstBytes, isClosed, isDone, setStoreFirstByte, write, write, write
flush
public CompressorStreamLz4(IDatChunkWriter os, int maxBlockLen, long totalLen)
public CompressorStreamLz4(IDatChunkWriter os, int maxBlockLen, long totalLen, Deflater def)
public CompressorStreamLz4(IDatChunkWriter os, int maxBlockLen, long totalLen, int deflaterCompLevel, int deflaterStrategy)
public void mywrite(byte[] b, int off, int len)
CompressorStream
mywrite
in class CompressorStream
public void done()
CompressorStream
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.