net.spy.util
Class Base64InputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
net.spy.util.ByteConverionInputStream
net.spy.util.Base64InputStream
- All Implemented Interfaces:
- Closeable
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. |
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.
- Overrides:
read in class FilterInputStream
- 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.
- Overrides:
available in class FilterInputStream
- Throws:
IOException
Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.