public class Radix64InputStream extends FilterInputStream
File f = new File("encoded.txt"); Radix64InputStream r64in = new Radix64InputStream(new FileInputStream(f));
The decoded data may then be obtained by reading from r64in
.
This filter disregards any non-Radix-64 characters in the input. Radix-64 characters include '/', '+', '=', 'A' - 'Z', '0' - '9', and 'a' - 'z'.
FilterInputStream
Modifier and Type | Field and Description |
---|---|
private byte[] |
buf |
private byte[] |
bufx |
private int |
c |
in
Constructor and Description |
---|
Radix64InputStream(InputStream in)
Construct a new
Radix64InputStream to filter the given
input stream. |
Modifier and Type | Method and Description |
---|---|
int |
read()
Read a byte from the input stream.
|
available, close, mark, markSupported, read, read, reset, skip
public Radix64InputStream(InputStream in)
Radix64InputStream
to filter the given
input stream.in
- The InputStream
to filter.public int read() throws IOException
read
in class FilterInputStream
IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses