For the latest news and information visit
The GNU Crypto project

gnu.crypto.pki.io
Class Base64InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by gnu.crypto.pki.io.Base64InputStream
All Implemented Interfaces:
Closeable

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()
Overrides:
available in class FilterInputStream

read

public int read()
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException

read

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

markSupported

public boolean markSupported()
Overrides:
markSupported in class FilterInputStream

mark

public void mark(int markLimit)
Overrides:
mark in class FilterInputStream

reset

public void reset()
           throws IOException
Overrides:
reset in class FilterInputStream
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class FilterInputStream
Throws:
IOException

For the latest news and information visit
The GNU Crypto project

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