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.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ThreadLocal<SoftReference<BufferRecycler>>_recyclerRef
-
Constructor Summary
Constructors Modifier Constructor Description protectedQuotedPrintableInputStream(int bufsize, InputStream in, boolean strict)protectedQuotedPrintableInputStream(int bufsize, InputStream in, DecodeMonitor monitor)QuotedPrintableInputStream(InputStream in)QuotedPrintableInputStream(InputStream in, boolean strict)QuotedPrintableInputStream(InputStream in, DecodeMonitor monitor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Terminates Quoted-Printable coded content.static BufferRecyclergetBufferRecycler()intread()intread(byte[] b, int off, int len)-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Field Detail
-
_recyclerRef
protected static final ThreadLocal<SoftReference<BufferRecycler>> _recyclerRef
-
-
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
-
getBufferRecycler
public static BufferRecycler getBufferRecycler()
-
close
public void close()
Terminates Quoted-Printable coded content. This method does NOT close the underlying input stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
-