public class CompressingOutputStream extends FilterOutputStream
DecompressingInputStreamout| Constructor and Description |
|---|
CompressingOutputStream(OutputStream out)
Constructor which wraps an output stream, and initializes the code map
with all possible values of a single byte, before increasing the codesize
to the size of one byte + 1 to make place for the next code
|
public CompressingOutputStream(OutputStream out)
out - -
the output stream to output the results troughpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic void write(byte[] bytes)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] bytes,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionCopyright © 2014. All Rights Reserved.