public class RunLengthOutputStream extends FilterOutputStream implements IFinishable
RunLengthDecode
filter from the PDF specification.out| Constructor and Description |
|---|
RunLengthOutputStream(OutputStream out)
Creates a new
RunLengthDecode encoding stream. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
finish()
Is called to finalize the stream, implementing classes should ensure that the underlying
output stream remains open after this method is called.
|
void |
write(int b) |
flush, write, writepublic RunLengthOutputStream(OutputStream out)
RunLengthDecode encoding stream.out - the output stream to write encoded data topublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic void finish()
throws IOException
This method completes any pending write operations, flushes internal buffers,
writes any final data required by the stream format, and releases resources
associated with the stream processing. However, unlike OutputStream.close(),
it does not close the underlying output stream.
After calling this method, no further data should be written to this stream, but the underlying stream remains open and can be used for other operations.
This method should be idempotent - calling it multiple times should have the same effect as calling it once.
finish in interface IFinishableIOException - if an I/O error occurs during finalizationCopyright © 1998–2026 Apryse Group NV. All rights reserved.