All Packages Class Hierarchy This Package Previous Next Index
Class iaik.utils.Base64InputStream
java.lang.Object
|
+----java.io.InputStream
|
+----java.io.FilterInputStream
|
+----iaik.utils.Base64InputStream
- public class Base64InputStream
- extends FilterInputStream
Decode a BASE64 encoded input stream to some output stream.
- See Also:
- Base64OutputStream
-
Base64InputStream(InputStream)
- Creates a new Base64InputStream to read data from the specified input stream.
-
read()
- Returns the next BASE64 decoded byte.
-
read(byte[], int, int)
- Fills up the specified bytes of the
b array with the
next len decoded bytes
Base64InputStream
public Base64InputStream(InputStream in)
- Creates a new Base64InputStream to read data from the specified input stream.
- Parameters:
- in - - the underlying input stream.
read
public int read(byte b[],
int off,
int len) throws IOException, Base64Exception
- Fills up the specified bytes of the
b array with the
next len decoded bytes
- Parameters:
- b - - the byte array into which the decoded bytes will be read.
- off - - the offset into
b indicating where the
first decoded byte should be read.
- len - - the number of decoded bytes to
read into
b, starting at offset off.
- Returns:
- the number of bytes read into
b, or -1 if EOF was reached.
- Throws: IOException
- if an I/O error occurs.
- Throws: Base64Exception
- if there is an Base64 format error
- Overrides:
- read in class FilterInputStream
read
public int read() throws IOException, Base64Exception
- Returns the next BASE64 decoded byte.
- Returns:
- the next decoded byte, or -1 if EOF
- Throws: IOException
- if an error occurs.
- Throws: Base64Exception
- if there is an Base64 format error
- Overrides:
- read in class FilterInputStream
All Packages Class Hierarchy This Package Previous Next Index