public class Base64InputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private static int[] |
BASE64_DECODE |
private static byte |
BASE64_PAD |
private boolean |
closed |
private ByteArrayBuffer |
decodedBuf |
private byte[] |
encoded |
private static int |
ENCODED_BUFFER_SIZE |
private boolean |
eof |
private static int |
EOF |
private java.io.InputStream |
in |
private DecodeMonitor |
monitor |
private int |
position |
private byte[] |
singleByte |
private int |
size |
| Modifier | Constructor and Description |
|---|---|
|
Base64InputStream(java.io.InputStream in) |
|
Base64InputStream(java.io.InputStream in,
boolean strict) |
|
Base64InputStream(java.io.InputStream in,
DecodeMonitor monitor) |
protected |
Base64InputStream(int bufsize,
java.io.InputStream in,
DecodeMonitor monitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
private int |
decodePad(int data,
int sextets,
byte[] buffer,
int index,
int end) |
private void |
handleUnexpecedPad(int sextets) |
private void |
handleUnexpectedEof(int sextets) |
int |
read() |
int |
read(byte[] buffer) |
int |
read(byte[] buffer,
int offset,
int length) |
private int |
read0(byte[] buffer,
int off,
int len) |
private static final int ENCODED_BUFFER_SIZE
private static final int[] BASE64_DECODE
private static final byte BASE64_PAD
private static final int EOF
private final byte[] singleByte
private final java.io.InputStream in
private final byte[] encoded
private final ByteArrayBuffer decodedBuf
private int position
private int size
private boolean closed
private boolean eof
private final DecodeMonitor monitor
public Base64InputStream(java.io.InputStream in,
DecodeMonitor monitor)
protected Base64InputStream(int bufsize,
java.io.InputStream in,
DecodeMonitor monitor)
public Base64InputStream(java.io.InputStream in)
public Base64InputStream(java.io.InputStream in,
boolean strict)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionprivate int read0(byte[] buffer,
int off,
int len)
throws java.io.IOException
java.io.IOExceptionprivate int decodePad(int data,
int sextets,
byte[] buffer,
int index,
int end)
throws java.io.IOException
java.io.IOExceptionprivate void handleUnexpectedEof(int sextets)
throws java.io.IOException
java.io.IOExceptionprivate void handleUnexpecedPad(int sextets)
throws java.io.IOException
java.io.IOException