Class Base16OutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

Provides Base16 encoding in a streaming fashion (unlimited size).

The default behavior of the Base16OutputStream is to ENCODE, whereas the default behavior of the Base16InputStream is to DECODE. But this behavior can be overridden by using a different constructor.

Since:
1.15
See Also:
  • Constructor Details

    • Base16OutputStream

      public Base16OutputStream(OutputStream outputStream)
      Constructs a Base16OutputStream such that all data written is Base16-encoded to the original provided OutputStream.
      Parameters:
      outputStream - OutputStream to wrap.
    • Base16OutputStream

      @Deprecated public Base16OutputStream(OutputStream outputStream, boolean encode)
      Constructs a Base16OutputStream such that all data written is either Base16-encoded or Base16-decoded to the original provided OutputStream.
      Parameters:
      outputStream - OutputStream to wrap.
      encode - true if we should encode all data written to us, false if we should decode.
    • Base16OutputStream

      @Deprecated public Base16OutputStream(OutputStream outputStream, boolean encode, boolean lowerCase)
      Constructs a Base16OutputStream such that all data written is either Base16-encoded or Base16-decoded to the original provided OutputStream.
      Parameters:
      outputStream - OutputStream to wrap.
      encode - true if we should encode all data written to us, false if we should decode.
      lowerCase - if true then use a lower-case Base16 alphabet.
    • Base16OutputStream

      @Deprecated public Base16OutputStream(OutputStream outputStream, boolean encode, boolean lowerCase, CodecPolicy decodingPolicy)
      Constructs a Base16OutputStream such that all data written is either Base16-encoded or Base16-decoded to the original provided OutputStream.
      Parameters:
      outputStream - OutputStream to wrap.
      encode - true if we should encode all data written to us, false if we should decode.
      lowerCase - if true then use a lower-case Base16 alphabet.
      decodingPolicy - Decoding policy.
  • Method Details