Class HexOutputStream

java.lang.Object
java.io.OutputStream
com.sun.corba.ee.impl.misc.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.
  • Field Details

    • hex

      private static final char[] hex
    • writer

      private StringWriter writer
  • Constructor Details

    • HexOutputStream

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