Package org.apache.james.mime4j.codec
Class QuotedPrintableInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.james.mime4j.codec.QuotedPrintableInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class QuotedPrintableInputStream extends InputStream
Performs Quoted-Printable decoding on an underlying stream.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QuotedPrintableInputStream(int bufsize, InputStream in, boolean strict)
protected
QuotedPrintableInputStream(int bufsize, InputStream in, DecodeMonitor monitor)
QuotedPrintableInputStream(InputStream in)
QuotedPrintableInputStream(InputStream in, boolean strict)
QuotedPrintableInputStream(InputStream in, DecodeMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Terminates Quoted-Printable coded content.int
read()
int
read(byte[] b, int off, int len)
-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
QuotedPrintableInputStream
public QuotedPrintableInputStream(InputStream in, DecodeMonitor monitor)
-
QuotedPrintableInputStream
protected QuotedPrintableInputStream(int bufsize, InputStream in, DecodeMonitor monitor)
-
QuotedPrintableInputStream
protected QuotedPrintableInputStream(int bufsize, InputStream in, boolean strict)
-
QuotedPrintableInputStream
public QuotedPrintableInputStream(InputStream in, boolean strict)
-
QuotedPrintableInputStream
public QuotedPrintableInputStream(InputStream in)
-
-
Method Detail
-
close
public void close() throws IOException
Terminates Quoted-Printable coded content. This method does NOT close the underlying input stream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
- on I/O errors.
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
-