com.jkristian.io
Class Base64DecodeInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.jkristian.io.FilteredByteInputStream
          extended by com.jkristian.io.InputFilterInputStream
              extended by com.jkristian.io.Base64DecodeInputStream
All Implemented Interfaces:
java.io.Closeable

public class Base64DecodeInputStream
extends InputFilterInputStream

A filter that decodes input from base64 encoding to binary bytes. Unexpected bytes are silently ignored.

Base64 encoding is defined by RFC 2045 (MIME) section 6.8.


Field Summary
 
Fields inherited from class com.jkristian.io.FilteredByteInputStream
CHUNK_LENGTH
 
Constructor Summary
Base64DecodeInputStream(java.io.InputStream in)
           
Base64DecodeInputStream(java.io.InputStream in, int chunkLength)
           
 
Method Summary
protected static java.io.OutputStream newDecoder(java.io.OutputStream out)
           
 
Methods inherited from class com.jkristian.io.InputFilterInputStream
close, filterInput, main, ready
 
Methods inherited from class com.jkristian.io.FilteredByteInputStream
available, flush, getByteFilter, mark, markSupported, read, read, read, reset, setByteFilter, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64DecodeInputStream

public Base64DecodeInputStream(java.io.InputStream in)

Base64DecodeInputStream

public Base64DecodeInputStream(java.io.InputStream in,
                               int chunkLength)
Method Detail

newDecoder

protected static java.io.OutputStream newDecoder(java.io.OutputStream out)