|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--java.io.FilterInputStream | +--FIM.Util.Coder.Base64.Base64InputStream
An input stream which decodes a base64-encoded stream.
Field Summary | |
(package private) int[] |
buf
Buffer for decoded bytes that haven't been read |
(package private) int |
buffered
Number of buffered bytes |
(package private) byte[] |
ebuf
Buffer for encoded bytes |
(package private) boolean |
textfile
if true this is based on a textfile and \r\n will be translated to \n |
Fields inherited from class java.io.FilterInputStream |
in |
Constructor Summary | |
Base64InputStream(InputStream in)
Constructs a new Base64InputStream initialized with the specified input stream. |
|
Base64InputStream(InputStream in,
boolean textfile)
Constructs a new Base64InputStream initialized with the specified input stream, for a text file. |
Method Summary | |
(package private) static void |
|
protected void |
fill_buffer()
Fills buf with a new chunk of decoded data. |
static void |
main(String[] args)
Test for Base64InputStream. |
int |
peek()
Returns the next byte which will be read. |
int |
read()
Reads a byte of data. |
int |
read(byte[] b,
int off,
int len)
Reads into an array of bytes. |
long |
skip(long n)
Skips bytes of input. |
Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
int[] buf
int buffered
byte[] ebuf
boolean textfile
true
this is based on a textfile and \r\n will be translated to \nConstructor Detail |
public Base64InputStream(InputStream in)
in
- the input streampublic Base64InputStream(InputStream in, boolean textfile)
true
, a \r is immediately followed by a \n, the \r
will be filtered out.in
- the input streamtextfile
- true if the file is a text fileMethod Detail |
static void()
public int read() throws IOException
read
in class FilterInputStream
IOException
- if an I/O error has occurred.public int peek() throws IOException
IOException
- If in I/O error has occurred.public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
b
- the buffer into which the data is readoff
- the start offset of the datalen
- the maximum number of bytes to readIOException
- if an I/O error has occurred.public long skip(long n) throws IOException
skip
in class FilterInputStream
n
- number of bytes to be skippedIOException
- if an I/O error has occurred.protected void fill_buffer() throws IOException
IOException
- if an I/O error has occurred.public static void main(String[] args)
|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |