org.apache.geronimo.mail.util
Class UUDecoderStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.geronimo.mail.util.UUDecoderStream
- All Implemented Interfaces:
- java.io.Closeable
public class UUDecoderStream
- extends java.io.FilterInputStream
An implementation of a FilterOutputStream that decodes the
stream data in UU 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.
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 |
MAX_CHARS_PER_LINE
protected static final int MAX_CHARS_PER_LINE
- See Also:
- Constant Field Values
decoder
protected UUEncoder decoder
decodedChars
protected byte[] decodedChars
decodedCount
protected int decodedCount
decodedIndex
protected int decodedIndex
beginRead
protected boolean beginRead
UUDecoderStream
public UUDecoderStream(java.io.InputStream in)
readLine
protected java.lang.String readLine()
throws java.io.IOException
- Read a line of data. Returns null if there is an EOF.
- Returns:
- The next line read from the stream. Returns null if we
hit the end of the stream.
- Throws:
java.io.IOException
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 © {inceptionYear}-2008 null. All Rights Reserved.