net.spy.util
Class Base64InputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended bynet.spy.util.ByteConverionInputStream
              extended bynet.spy.util.Base64InputStream

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(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.
static void main(String[] args)
           
 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(InputStream is)
Get a new Base64InputStream decoding the given InputStream.

Method Detail

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