Package org.apache.commons.codec.binary
Class Base16InputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.codec.binary.BaseNCodecInputStream
org.apache.commons.codec.binary.Base16InputStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable
Provides Base16 decoding in a streaming fashion (unlimited size).
 
 The default behavior of the Base16InputStream is to DECODE, whereas the default behavior of the
 Base16OutputStream is to ENCODE, but this behavior can be overridden by using a different constructor.
 
- Since:
- 1.15
- 
Field SummaryFields inherited from class java.io.FilterInputStreamin
- 
Constructor SummaryConstructorsConstructorDescriptionBase16InputStream(InputStream inputStream) Constructs a Base16InputStream such that all data read is Base16-decoded from the original provided InputStream.Base16InputStream(InputStream inputStream, boolean doEncode) Constructs a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original provided InputStream.Base16InputStream(InputStream inputStream, boolean doEncode, boolean lowerCase) Constructs a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original provided InputStream.Base16InputStream(InputStream inputStream, boolean doEncode, boolean lowerCase, CodecPolicy decodingPolicy) Constructs a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original provided InputStream.
- 
Method SummaryMethods inherited from class org.apache.commons.codec.binary.BaseNCodecInputStreamavailable, isStrictDecoding, mark, markSupported, read, read, reset, skipMethods inherited from class java.io.FilterInputStreamclose, read
- 
Constructor Details- 
Base16InputStreamConstructs a Base16InputStream such that all data read is Base16-decoded from the original provided InputStream.- Parameters:
- inputStream- InputStream to wrap.
 
- 
Base16InputStreamConstructs a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original provided InputStream.- Parameters:
- inputStream- InputStream to wrap.
- doEncode- true if we should encode all data read from us, false if we should decode.
 
- 
Base16InputStreamConstructs a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original provided InputStream.- Parameters:
- inputStream- InputStream to wrap.
- doEncode- true if we should encode all data read from us, false if we should decode.
- lowerCase- if- truethen use a lower-case Base16 alphabet.
 
- 
Base16InputStreampublic Base16InputStream(InputStream inputStream, boolean doEncode, boolean lowerCase, CodecPolicy decodingPolicy) Constructs a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original provided InputStream.- Parameters:
- inputStream- InputStream to wrap.
- doEncode- true if we should encode all data read from us, false if we should decode.
- lowerCase- if- truethen use a lower-case Base16 alphabet.
- decodingPolicy- Decoding policy.
 
 
-