Package org.apache.cxf.attachment
Class Base64DecoderStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.cxf.attachment.Base64DecoderStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable
An implementation of a FilterInputStream that decodes the
 stream data in BASE64 encoding format.  This version does the
 decoding "on the fly" rather than decoding a single block of
 data.  Since this version is intended for use by the MimeUtilty class,
 it also handles line breaks in the encoded data.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected byte[]protected intprotected intprotected char[]protected booleanFields inherited from class java.io.FilterInputStreamin
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
- 
Field Details- 
ignoreErrorsprotected boolean ignoreErrors
- 
encodedCharsprotected char[] encodedChars
- 
decodedCharsprotected byte[] decodedChars
- 
decodedCountprotected int decodedCount
- 
decodedIndexprotected int decodedIndex
 
- 
- 
Constructor Details- 
Base64DecoderStream
 
- 
- 
Method Details- 
read- Overrides:
- readin class- FilterInputStream
- Throws:
- IOException
 
- 
read- Overrides:
- readin class- FilterInputStream
- Throws:
- IOException
 
- 
markSupportedpublic boolean markSupported()- Overrides:
- markSupportedin class- FilterInputStream
 
- 
available- Overrides:
- availablein class- FilterInputStream
- Throws:
- IOException
 
 
-