public class Base16OutputStream extends BaseNCodecOutputStream
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.
out
Constructor and Description |
---|
Base16OutputStream(OutputStream out)
Creates a Base16OutputStream such that all data written is Hex-encoded to the original provided OutputStream.
|
Base16OutputStream(OutputStream out,
boolean doEncode)
Creates a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the
original provided OutputStream.
|
Base16OutputStream(OutputStream out,
boolean doEncode,
boolean lowerCase)
Creates a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the
original provided OutputStream.
|
Base16OutputStream(OutputStream out,
boolean doEncode,
boolean lowerCase,
CodecPolicy decodingPolicy)
Creates a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the
original provided OutputStream.
|
close, eof, flush, isStrictDecoding, write, write
write
public Base16OutputStream(OutputStream out)
out
- OutputStream to wrap.public Base16OutputStream(OutputStream out, boolean doEncode)
out
- OutputStream to wrap.doEncode
- true if we should encode all data written to us, false if we should decode.public Base16OutputStream(OutputStream out, boolean doEncode, boolean lowerCase)
out
- OutputStream to wrap.doEncode
- 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.public Base16OutputStream(OutputStream out, boolean doEncode, boolean lowerCase, CodecPolicy decodingPolicy)
out
- OutputStream to wrap.doEncode
- 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.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.