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 Summary
Modifier and TypeFieldDescriptionprotected byte[]
protected int
protected int
protected char[]
protected boolean
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
ignoreErrors
protected boolean ignoreErrors -
encodedChars
protected char[] encodedChars -
decodedChars
protected byte[] decodedChars -
decodedCount
protected int decodedCount -
decodedIndex
protected int decodedIndex
-
-
Constructor Details
-
Base64DecoderStream
-
-
Method Details
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classFilterInputStream
-
available
- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-