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, Finalizable
public class RunLengthEncodeOutputStream
- extends FilterOutputStream
- implements Finalizable
This class applies a RunLengthEncode filter to the stream.
- Version:
- $Id: RunLengthEncodeOutputStream.java 1732018 2016-02-24 04:51:06Z gadams $
Originally authored by Stephen Wolke.
Method Summary |
void |
close()
|
void |
finalizeStream()
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunLengthEncodeOutputStream
public RunLengthEncodeOutputStream(OutputStream out)
- See Also:
FilterOutputStream
write
public void write(byte b)
throws IOException
- Throws:
IOException
- See Also:
FilterOutputStream
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
- See Also:
FilterOutputStream
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
- See Also:
FilterOutputStream
finalizeStream
public void finalizeStream()
throws IOException
- 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 interface Finalizable
- Throws:
IOException
- In case of an IO problem- See Also:
Finalizable
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterOutputStream
- Throws:
IOException
- See Also:
FilterOutputStream
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.