Class HexOutputStream

java.lang.Object
java.io.OutputStream
com.sun.corba.se.impl.orbutil.HexOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class HexOutputStream extends OutputStream
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 Details

    • HexOutputStream

      public HexOutputStream(StringWriter w)
      Creates a new HexOutputStream.
      Parameters:
      w - The underlying StringWriter.
  • Method Details