Package org.apache.xmlgraphics.util.io
Class ASCIIHexOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.xmlgraphics.util.io.ASCIIHexOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,Finalizable
This class applies a ASCII Hex encoding to the stream.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate intprivate static final intFields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterOutputStream
flush, write, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
EOL
private static final int EOL- See Also:
-
EOD
private static final int EOD- See Also:
-
ZERO
private static final int ZERO- See Also:
-
NINE
private static final int NINE- See Also:
-
A
private static final int A- See Also:
-
ADIFF
private static final int ADIFF- See Also:
-
posinline
private int posinline
-
-
Constructor Details
-
ASCIIHexOutputStream
- See Also:
-
-
Method Details
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException- See Also:
-
checkLineWrap
- Throws:
IOException
-
finalizeStream
Description 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:
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException- See Also:
-