net.spy.util
Class Base64InputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
net.spy.util.ByteConverionInputStream
net.spy.util.Base64InputStream
- public class Base64InputStream
- extends ByteConverionInputStream
A filter stream for decoding Base64 data on an InputStream.
|
Method Summary |
int |
available()
Return the number of bytes that may be read without blocking. |
static void |
main(String[] args)
|
int |
read()
Get the next decoded byte in this stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64InputStream
public Base64InputStream(InputStream is)
- Get a new Base64InputStream decoding the given InputStream.
read
public int read()
throws IOException
- Get the next decoded byte in this stream.
- Throws:
IOException
available
public int available()
throws IOException
- Return the number of bytes that may be read without blocking.
This is kind of a guess based on the number of bytes available. It
probably works.
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception