|
||||||||||
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 com.ibm.commons.util.io.base64.Base64InputStream
public class Base64InputStream
A Base64 content transfer encoding filter stream.
From RFC 2045, section 6.8:
The Base64 Content-Transfer-Encoding is designed to represent arbitrary sequences of octets in a form that need not be humanly readable. The encoding and decoding algorithms are simple, but the encoded data are consistently only about 33 percent larger than the unencoded data.
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
Base64InputStream(java.io.InputStream in)
Constructs an input stream that decodes an underlying Base64-encoded stream. |
Method Summary | |
---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of bytes. |
Methods inherited from class java.io.FilterInputStream |
---|
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 Base64-encoded streamMethod Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
- IO Exception occurredpublic int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
b
- buffer to put dataoff
- offset to start of bufferlen
- number of bytes from buffer
java.io.IOException
- IO Exception occurredpublic int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
- IO Exception occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |