For the latest news and information visit
The GNU Crypto project

gnu.crypto.pki.io
Class Base64InputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended bygnu.crypto.pki.io.Base64InputStream

public class Base64InputStream
extends FilterInputStream

A filter input stream that decodes data encoded in the Base-64 encoding scheme.

Author:
Casey Marshall (rsdio@metastatic.org)

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
Base64InputStream(InputStream in)
          Create a new Base-64 input stream.
 
Method Summary
 int available()
           
 void mark(int markLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] buf, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.FilterInputStream
close, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64InputStream

public Base64InputStream(InputStream in)
Create a new Base-64 input stream. The input bytes must be the ASCII characters A-Z, a-z, 0-9, + and /, with optional whitespace, and will be decoded into a byte stream.

Parameters:
in - The source of Base-64 input.
Method Detail

available

public int available()

read

public int read()
         throws IOException
Throws:
IOException

read

public int read(byte[] buf,
                int off,
                int len)
         throws IOException
Throws:
IOException

markSupported

public boolean markSupported()

mark

public void mark(int markLimit)

reset

public void reset()
           throws IOException
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Throws:
IOException

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.