Package org.apache.commons.codec.binary
Class Base16OutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.codec.binary.BaseNCodecOutputStream
org.apache.commons.codec.binary.Base16OutputStream
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable
Provides Hex encoding in a streaming fashion (unlimited size).
 
 The default behavior of the HexOutputStream 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
- 
Field SummaryFields inherited from class java.io.FilterOutputStreamout
- 
Constructor SummaryConstructorsConstructorDescriptionBase16OutputStream(OutputStream outputStream) Constructs a Base16OutputStream such that all data written is Hex-encoded to the original provided OutputStream.Base16OutputStream(OutputStream outputStream, boolean doEncode) Constructs a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the original provided OutputStream.Base16OutputStream(OutputStream outputStream, boolean doEncode, boolean lowerCase) Constructs a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the original provided OutputStream.Base16OutputStream(OutputStream outputStream, boolean doEncode, boolean lowerCase, CodecPolicy decodingPolicy) Constructs a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the original provided OutputStream.
- 
Method SummaryMethods inherited from class org.apache.commons.codec.binary.BaseNCodecOutputStreamclose, eof, flush, isStrictDecoding, write, writeMethods inherited from class java.io.FilterOutputStreamwrite
- 
Constructor Details- 
Base16OutputStreamConstructs a Base16OutputStream such that all data written is Hex-encoded to the original provided OutputStream.- Parameters:
- outputStream- OutputStream to wrap.
 
- 
Base16OutputStreamConstructs a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the original provided OutputStream.- Parameters:
- outputStream- OutputStream to wrap.
- doEncode- true if we should encode all data written to us, false if we should decode.
 
- 
Base16OutputStreamConstructs a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the original provided OutputStream.- Parameters:
- outputStream- OutputStream to wrap.
- doEncode- true if we should encode all data written to us, false if we should decode.
- lowerCase- if- truethen use a lower-case Base16 alphabet.
 
- 
Base16OutputStreampublic Base16OutputStream(OutputStream outputStream, boolean doEncode, boolean lowerCase, CodecPolicy decodingPolicy) Constructs a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the original provided OutputStream.- Parameters:
- outputStream- OutputStream to wrap.
- doEncode- true if we should encode all data written to us, false if we should decode.
- lowerCase- if- truethen use a lower-case Base16 alphabet.
- decodingPolicy- Decoding policy.
 
 
-