|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
com.compoze.util.Base64InputStream
public class Base64InputStream
This class provides an implementation of a Base 64 decoder in the form
of an extension of FilterOutputStream
. It is based on the
implementation of BASE64DecoderStream
from Sun's JDK utility
classes.
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
Base64InputStream(java.io.InputStream inputstream)
Constructor. |
Method Summary | |
---|---|
int |
available()
Gets the number of bytes that are available to read. |
void |
decode()
Decodes the buffer. |
static byte[] |
decode(byte[] abyte0)
Decodes a buffer. |
boolean |
markSupported()
Determines if mark is supported. |
int |
read()
Reads a byte. |
int |
read(byte[] abyte0,
int i,
int j)
Reads bytes. |
Methods inherited from class java.io.FilterInputStream |
---|
close, mark, 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 inputstream)
inputstream
- the underlying InputStream
Method Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
- if an i/o error occurredpublic int read(byte[] abyte0, int i, int j) throws java.io.IOException
read
in class java.io.FilterInputStream
abyte0
- the buffer to read intoi
- the offset into the arrayj
- the length to read
java.io.IOException
- if an i/o error occurredpublic boolean markSupported()
markSupported
in class java.io.FilterInputStream
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
- if an i/o error occurredpublic void decode() throws java.io.IOException
java.io.IOException
- if an i/o error occurredpublic static byte[] decode(byte[] abyte0)
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |