public class Base64DecodeStream
extends java.io.InputStream
byte data[];
InputStream is = new ByteArrayInputStream(data);
is = new Base64DecodeStream(is);
On errors, this class throws a IOException with the following detail
strings:
"Base64DecodeStream: Bad Padding byte (2)."
"Base64DecodeStream: Bad Padding byte (1)."
| Modifier and Type | Field and Description |
|---|---|
(package private) byte[] |
decodeBuffer |
(package private) boolean |
eof |
(package private) byte[] |
outBuffer |
(package private) int |
outOffset |
private static byte[] |
PEM_ARRAY |
(package private) java.io.InputStream |
src |
| Constructor and Description |
|---|
Base64DecodeStream(java.io.InputStream src) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
(package private) boolean |
getNextAtom() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] out,
int offset,
int len) |
java.io.InputStream src
private static final byte[] PEM_ARRAY
byte[] decodeBuffer
byte[] outBuffer
int outOffset
boolean eof
public boolean markSupported()
markSupported in class java.io.InputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] out,
int offset,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionfinal boolean getNextAtom()
throws java.io.IOException
java.io.IOException