com.mucommander.io.base64
Class Base64InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.mucommander.io.base64.Base64InputStream
All Implemented Interfaces:
java.io.Closeable

public class Base64InputStream
extends java.io.InputStream

Base64InputStream is an InputStream that decodes Base64-encoded data provided by an underlying InputStream. The underlying data must be valid base64-encoded data, if not, IOException will be thrown when illegal data is encountered.

Author:
Maxence Bernard
See Also:
Base64Decoder

Constructor Summary
Base64InputStream(java.io.InputStream in)
          Creates a new Base64InputStream that allows to decode Base64-encoded from the provided InputStream.
 
Method Summary
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, 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(java.io.InputStream in)
Creates a new Base64InputStream that allows to decode Base64-encoded from the provided InputStream.

Parameters:
in - underlying InputStream the Base64-encoded data is read from
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard