Closeable, AutoCloseablepublic class Base64DecodeStream extends 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)."
| Constructor | Description |
|---|---|
Base64DecodeStream(InputStream src) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
|
boolean |
markSupported() |
|
int |
read() |
|
int |
read(byte[] out,
int offset,
int len) |
mark, read, readAllBytes, readNBytes, reset, skip, transferTopublic Base64DecodeStream(InputStream src)
public boolean markSupported()
markSupported in class InputStreampublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] out,
int offset,
int len)
throws IOException
read in class InputStreamIOExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.