|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream java.io.FilterInputStream org.apache.geronimo.mail.util.QuotedPrintableDecoderStream
public class QuotedPrintableDecoderStream
An implementation of a FilterOutputStream that decodes the stream data in Q-P 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 | |
---|---|
protected QuotedPrintableEncoder |
decoder
|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
QuotedPrintableDecoderStream(InputStream in)
Stream constructor. |
Method Summary | |
---|---|
int |
available()
Give an estimate of how much additional data is available from this stream. |
boolean |
markSupported()
Indicate whether this stream supports the mark() operation. |
int |
read()
Read a single byte from the stream. |
int |
read(byte[] buffer,
int offset,
int length)
Read a buffer of data from the input stream. |
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 |
Field Detail |
---|
protected QuotedPrintableEncoder decoder
Constructor Detail |
---|
public QuotedPrintableDecoderStream(InputStream in)
in
- The InputStream this stream is filtering.Method Detail |
---|
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] buffer, int offset, int length) throws IOException
read
in class FilterInputStream
buffer
- The target byte array the data is placed into.offset
- The starting offset for the read data.length
- How much data is requested.
IOException
public boolean markSupported()
markSupported
in class FilterInputStream
public int available() throws IOException
available
in class FilterInputStream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |