Package org.apache.james.mime4j.codec
Class Base64InputStream
java.lang.Object
java.io.InputStream
org.apache.james.mime4j.codec.Base64InputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Performs Base-64 decoding on an underlying stream.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ThreadLocal<SoftReference<BufferRecycler>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBase64InputStream(int bufsize, InputStream in, DecodeMonitor monitor) Base64InputStream(InputStream in, boolean strict) Base64InputStream(InputStream in, DecodeMonitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static BufferRecyclerintread()intread(byte[] buffer) intread(byte[] buffer, int offset, int length) Methods inherited from class java.io.InputStream
available, mark, markSupported, reset, skip
-
Field Details
-
_recyclerRef
-
-
Constructor Details
-
Base64InputStream
-
Base64InputStream
-
Base64InputStream
-
Base64InputStream
-
-
Method Details
-
getBufferRecycler
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-