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
public class Base64InputStream extends InputStream
Performs Base-64 decoding on an underlying stream.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBase64InputStream(int bufsize, InputStream in, DecodeMonitor monitor)Base64InputStream(InputStream in)Base64InputStream(InputStream in, boolean strict)Base64InputStream(InputStream in, DecodeMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(byte[] buffer)intread(byte[] buffer, int offset, int length)-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
Base64InputStream
public Base64InputStream(InputStream in, DecodeMonitor monitor)
-
Base64InputStream
protected Base64InputStream(int bufsize, InputStream in, DecodeMonitor monitor)
-
Base64InputStream
public Base64InputStream(InputStream in)
-
Base64InputStream
public Base64InputStream(InputStream in, boolean strict)
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] buffer) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] buffer, int offset, int length) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-