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
public class ASCIIHexOutputStream extends 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 $
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description ASCIIHexOutputStream(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(int b)-
Methods inherited from class java.io.FilterOutputStream
flush, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
ASCIIHexOutputStream
public ASCIIHexOutputStream(OutputStream out)
- See Also:
FilterOutputStream
-
-
Method Detail
-
write
public void write(int b) 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
-
-