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:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
,Finalizable
public class ASCIIHexOutputStream extends java.io.FilterOutputStream implements Finalizable
This class applies a ASCII Hex encoding to the stream.- Version:
- $Id: ASCIIHexOutputStream.java 1732018 2016-02-24 04:51:06Z gadams $
-
-
Constructor Summary
Constructors Constructor Description ASCIIHexOutputStream(java.io.OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkLineWrap()
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(int b)
-
-
-
Field Detail
-
EOL
private static final int EOL
- See Also:
- Constant Field Values
-
EOD
private static final int EOD
- See Also:
- Constant Field Values
-
ZERO
private static final int ZERO
- See Also:
- Constant Field Values
-
NINE
private static final int NINE
- See Also:
- Constant Field Values
-
A
private static final int A
- See Also:
- Constant Field Values
-
ADIFF
private static final int ADIFF
- See Also:
- Constant Field Values
-
posinline
private int posinline
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException
- Overrides:
write
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
- See Also:
FilterOutputStream
-
checkLineWrap
private void checkLineWrap() throws java.io.IOException
- Throws:
java.io.IOException
-
finalizeStream
public void finalizeStream() throws java.io.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 interfaceFinalizable
- Throws:
java.io.IOException
- In case of an IO problem- See Also:
Finalizable
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
- See Also:
FilterOutputStream
-
-