Package com.sun.corba.ee.impl.misc
Class HexOutputStream
java.lang.Object
java.io.OutputStream
com.sun.corba.ee.impl.misc.HexOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Writes each input byte as a 2 byte hexidecimal output pair making it
possible to turn arbitrary binary data into an ASCII format.
The high 4 bits of the byte is translated into the first byte.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush
-
Field Details
-
hex
private static final char[] hex -
writer
-
-
Constructor Details
-
HexOutputStream
Creates a new HexOutputStream.- Parameters:
w
- The underlying StringWriter.
-
-
Method Details
-
write
Writes a byte. Will block until the byte is actually written. param b The byte to write out.- Specified by:
write
in classOutputStream
- Throws:
IOException
- I/O error occurred.
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-