Project JXTA

net.jxta.impl.util
Class BASE64InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by net.jxta.impl.util.BASE64InputStream
All Implemented Interfaces:
Closeable

public class BASE64InputStream
extends InputStream

An InputStream implementation which decodes BASE64 encoded data from a text Reader.

This implementation is not thread safe.

See Also:
{@see IETF RFC 2045 MIME : Format of Internet Message Bodies}.

Constructor Summary
BASE64InputStream(Reader source)
          Construct InputStream given a source of BASE64 encoded text.
 
Method Summary
 int available()
          
 void close()
          
 void mark(int readLimit)
          
 boolean markSupported()
          
 int read()
          
 
Methods inherited from class java.io.InputStream
read, 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(Reader source)
Construct InputStream given a source of BASE64 encoded text.

Method Detail

available

public int available()
              throws IOException

Overrides:
available in class InputStream
Throws:
IOException

close

public void close()
           throws IOException

Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException

mark

public void mark(int readLimit)

Overrides:
mark in class InputStream

markSupported

public boolean markSupported()

Overrides:
markSupported in class InputStream

read

public int read()
         throws IOException

Specified by:
read in class InputStream
Throws:
IOException

JXTA J2SE