org.freehep.util.io
Class Base64InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.freehep.util.io.Base64InputStream
All Implemented Interfaces:
Closeable

public class Base64InputStream
extends InputStream

The Base64InputStream decodes binary data according to RFC 2045. IMPORTANT: inherits from InputStream rather than FilterInputStream so that the correct read(byte[], int, int) method is used.

Version:
$Id: Base64InputStream.java 8584 2006-08-10 23:06:37Z duns $
Author:
Mark Donszelmann

Constructor Summary
Base64InputStream(InputStream input)
          Creates a Base64 input stream for given input
 
Method Summary
 int getLineNo()
           
 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(InputStream input)
Creates a Base64 input stream for given input

Parameters:
input - to be read from
Method Detail

read

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

getLineNo

public int getLineNo()
Returns:
current line number


Copyright © 2000-2007 FreeHEP. All Rights Reserved.