public class RunLengthOutputStream extends FilterOutputStream implements RunLength, FinishableOutputStream
out
Constructor and Description |
---|
RunLengthOutputStream(OutputStream out)
Create a Run Length output stream
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish()
Finishes the current outputstream (compresses, flushes, caluclates CRC)
and writes whatever is left in the buffers, but does not close the
stream.
|
void |
write(int a) |
flush, write, write
public RunLengthOutputStream(OutputStream out)
out
- stream to writepublic void write(int a) throws IOException
write
in class FilterOutputStream
IOException
public void finish() throws IOException
FinishableOutputStream
finish
in interface FinishableOutputStream
IOException
- if write failspublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
Copyright © 2016. All rights reserved.