public class LzopOutputStream extends LzoOutputStream
out| Constructor and Description |
|---|
LzopOutputStream(OutputStream out,
LzoCompressor compressor) |
LzopOutputStream(OutputStream out,
LzoCompressor compressor,
int inputBufferSize) |
LzopOutputStream(OutputStream out,
LzoCompressor compressor,
int inputBufferSize,
long flags)
Constructs a new LzopOutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Writes a null word to the underlying output stream, then closes it.
|
protected void |
writeBlock(byte[] inputData,
int inputPos,
int inputLen,
byte[] outputData,
int outputPos,
int outputLen) |
protected void |
writeLzopHeader()
Writes an lzop-compatible header to the OutputStream provided.
|
flush, getAlgorithm, getCompressor, getConstraints, write, write, write, writeIntpublic LzopOutputStream(OutputStream out, LzoCompressor compressor, @CheckForSigned int inputBufferSize, long flags) throws IOException
IOExceptionpublic LzopOutputStream(@Nonnull OutputStream out, @Nonnull LzoCompressor compressor, @CheckForSigned int inputBufferSize) throws IOException
IOExceptionpublic LzopOutputStream(@Nonnull OutputStream out, @Nonnull LzoCompressor compressor) throws IOException
IOExceptionprotected void writeLzopHeader() throws IOException
IOExceptionprotected void writeBlock(@Nonnull byte[] inputData, @Nonnegative int inputPos, @Nonnegative int inputLen, @Nonnull byte[] outputData, @Nonnegative int outputPos, @Nonnegative int outputLen) throws IOException
writeBlock in class LzoOutputStreamIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class LzoOutputStreamIOException