org.apache.geronimo.mail.util
Class Base64DecoderStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.geronimo.mail.util.Base64DecoderStream
- All Implemented Interfaces:
- java.io.Closeable
public class Base64DecoderStream
- extends java.io.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.
- Version:
- $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Wed, 25 Oct 2006) $
Fields inherited from class java.io.FilterInputStream |
in |
Methods inherited from class java.io.FilterInputStream |
close, mark, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAIL_BASE64_IGNOREERRORS
protected static final java.lang.String MAIL_BASE64_IGNOREERRORS
- See Also:
- Constant Field Values
BUFFERED_UNITS
protected static final int BUFFERED_UNITS
- See Also:
- Constant Field Values
decoder
protected Base64Encoder decoder
ignoreErrors
protected boolean ignoreErrors
encodedChars
protected byte[] encodedChars
decodedChars
protected byte[] decodedChars
decodedCount
protected int decodedCount
decodedIndex
protected int decodedIndex
Base64DecoderStream
public Base64DecoderStream(java.io.InputStream in)
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.FilterInputStream
- Throws:
java.io.IOException
read
public int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
- Overrides:
read
in class java.io.FilterInputStream
- Throws:
java.io.IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class java.io.FilterInputStream
available
public int available()
throws java.io.IOException
- Overrides:
available
in class java.io.FilterInputStream
- Throws:
java.io.IOException
Copyright © 2008. All Rights Reserved.