org.apache.james.mime4j.codec
Class Base64InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.james.mime4j.codec.Base64InputStream
All Implemented Interfaces:
java.io.Closeable

public class Base64InputStream
extends java.io.InputStream

Performs Base-64 decoding on an underlying stream.


Constructor Summary
Base64InputStream(java.io.InputStream in)
           
Base64InputStream(java.io.InputStream in, boolean strict)
           
 
Method Summary
 void close()
           
 int read()
           
 int read(byte[] buffer)
           
 int read(byte[] buffer, int offset, int length)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, 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)

Base64InputStream

public Base64InputStream(java.io.InputStream in,
                         boolean strict)
Method Detail

read

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

read

public int read(byte[] buffer)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException


Copyright © 2004-2011. All Rights Reserved.