Package org.apache.xmlgraphics.util.io
Class RunLengthEncodeOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.xmlgraphics.util.io.RunLengthEncodeOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,Finalizable
public class RunLengthEncodeOutputStream extends FilterOutputStream implements Finalizable
This class applies a RunLengthEncode filter to the stream.- Version:
- $Id: RunLengthEncodeOutputStream.java 1804124 2017-08-04 14:13:54Z ssteiner $ Originally authored by Stephen Wolke.
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description RunLengthEncodeOutputStream(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfinalizeStream()This method can be called instead of close() on a subclass of FilteredOutputStream when a final marker has to be written to the target stream, but close() cannot be called.voidwrite(byte b)voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)-
Methods inherited from class java.io.FilterOutputStream
flush, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
RunLengthEncodeOutputStream
public RunLengthEncodeOutputStream(OutputStream out)
- See Also:
FilterOutputStream
-
-
Method Detail
-
write
public void write(byte b) throws IOException- Throws:
IOException- See Also:
FilterOutputStream
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException- See Also:
FilterOutputStream
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException- See Also:
FilterOutputStream
-
finalizeStream
public void finalizeStream() throws IOExceptionDescription copied from interface:FinalizableThis method can be called instead of close() on a subclass of FilteredOutputStream when a final marker has to be written to the target stream, but close() cannot be called.- Specified by:
finalizeStreamin interfaceFinalizable- Throws:
IOException- In case of an IO problem- See Also:
Finalizable
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException- See Also:
FilterOutputStream
-
-