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
 
 public class Base64DecoderStream extends FilterInputStream 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 SummaryFields Modifier and Type Field Description protected byte[]decodedCharsprotected intdecodedCountprotected intdecodedIndexprotected char[]encodedCharsprotected booleanignoreErrors- 
Fields inherited from class java.io.FilterInputStreamin
 
- 
 - 
Constructor SummaryConstructors Constructor Description Base64DecoderStream(InputStream in)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()booleanmarkSupported()intread()intread(byte[] buffer, int offset, int length)- 
Methods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
 
- 
 
- 
- 
- 
Constructor Detail- 
Base64DecoderStreampublic Base64DecoderStream(InputStream in) 
 
- 
 - 
Method Detail- 
readpublic int read() throws IOException- Overrides:
- readin class- FilterInputStream
- Throws:
- IOException
 
 - 
readpublic int read(byte[] buffer, int offset, int length) throws IOException- Overrides:
- readin class- FilterInputStream
- Throws:
- IOException
 
 - 
markSupportedpublic boolean markSupported() - Overrides:
- markSupportedin class- FilterInputStream
 
 - 
availablepublic int available() throws IOException- Overrides:
- availablein class- FilterInputStream
- Throws:
- IOException
 
 
- 
 
-