|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream java.io.FilterInputStream org.yajul.io.AbstractByteFilterInputStream org.yajul.io.Base64InputStream
public class Base64InputStream
Provides decoding of BASE64 encoded data as an input stream filter. The underlying input stream is expected to be encoded in BASE64 form.
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
Base64InputStream(java.io.InputStream in)
Creates a new Base64 decoding input stream, using the input stream (encoded stream). |
Method Summary | |
---|---|
static int |
parseCharacter(int ch)
Checks a character for correct BASE64 encoding. |
int |
read()
Reads the next byte of data from this input stream. |
Methods inherited from class org.yajul.io.AbstractByteFilterInputStream |
---|
insert, read, readByte |
Methods inherited from class java.io.FilterInputStream |
---|
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64InputStream(java.io.InputStream in)
in
- The base 64 encoded input streamMethod Detail |
---|
public int read() throws java.io.IOException
int
in the range
0
to 255
. If no byte is available
because the end of the stream has been reached, the value
-1
is returned. This method blocks until input data
is available, the end of the stream is detected, or an exception
is thrown.
This method
simply performs in.read()
and returns the result.
read
in class AbstractByteFilterInputStream
-1
if the end of the
stream is reached.
java.io.IOException
- if an I/O error occurs.FilterInputStream.in
public static int parseCharacter(int ch)
ch
- the input character
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |