net.spy.util
Class Base64InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by net.spy.util.ByteConverionInputStream
              extended by net.spy.util.Base64InputStream
All Implemented Interfaces:
java.io.Closeable

public class Base64InputStream
extends ByteConverionInputStream

A filter stream for decoding Base64 data on an InputStream.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
Base64InputStream(java.io.InputStream is)
          Get a new Base64InputStream decoding the given 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 net.spy.util.ByteConverionInputStream
markSupported, read
 
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

Base64InputStream

public Base64InputStream(java.io.InputStream is)
Get a new Base64InputStream decoding the given InputStream.

Method Detail

read

public int read()
         throws java.io.IOException
Get the next decoded byte in this stream.

Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

available

public int available()
              throws java.io.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 java.io.FilterInputStream
Throws:
java.io.IOException


Copyright © 1995-2005 SPY Internetworking. All Rights Reserved.