Package com.sun.corba.se.impl.orbutil
Class HexOutputStream
java.lang.Object
java.io.OutputStream
com.sun.corba.se.impl.orbutil.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.
- Author:
- Jeff Nisewanger
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
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:
writein classOutputStream- Throws:
IOException- I/O error occurred.
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-