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
This class applies a RunLengthEncode filter to the stream.
- Version:
- $Id$ Originally authored by Stephen Wolke.
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
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.void
write
(byte b) void
write
(byte[] b) void
write
(byte[] b, int off, int len) Methods inherited from class java.io.FilterOutputStream
flush, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
RunLengthEncodeOutputStream
- See Also:
-
-
Method Details
-
write
- Throws:
IOException
- See Also:
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
- See Also:
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
- See Also:
-
finalizeStream
Description copied from interface:Finalizable
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.- Specified by:
finalizeStream
in interfaceFinalizable
- Throws:
IOException
- In case of an IO problem- See Also:
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
- See Also:
-