org.apache.commons.ssl
Class Base64InputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.apache.commons.ssl.Base64InputStream

public class Base64InputStream
extends FilterInputStream

Since:
22-Feb-2007
Author:
Credit Union Central of British Columbia, www.cucbc.com, juliusdavies@cucbc.com

Field Summary
(package private)  byte[] currentLine
           
(package private)  boolean decodeMode
           
private static byte[] LINE_ENDING
           
(package private)  int pos
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
Base64InputStream(InputStream base64, boolean decodeMode)
           
 
Method Summary
private  void getLine()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_ENDING

private static final byte[] LINE_ENDING

decodeMode

final boolean decodeMode

currentLine

byte[] currentLine

pos

int pos
Constructor Detail

Base64InputStream

public Base64InputStream(InputStream base64,
                         boolean decodeMode)
Method Detail

read

public int read()
         throws IOException
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Throws:
IOException

getLine

private void getLine()
              throws IOException
Throws:
IOException