com.liferay.portal.kernel.io
Class Base64InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.liferay.portal.kernel.io.Base64InputStream
All Implemented Interfaces:
java.io.Closeable

public class Base64InputStream
extends java.io.InputStream

View Source

Author:
Tina Tian

Constructor Summary
Base64InputStream(java.io.InputStream inputStream)
           
 
Method Summary
 int available()
           
protected  int decode(byte[] bytes, byte[] outputBuffer, int position, int padNumber)
           
protected  int decodeUnit(byte[] outputBuffer, int position)
           
protected  int getByte(char character)
           
protected  int getEncodedByte()
           
 int read()
           
 int read(byte[] buffer, int offset, int length)
           
 long skip(long skip)
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, reset
 
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 inputStream)
Method Detail

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

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,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

skip

public long skip(long skip)
          throws java.io.IOException
Overrides:
skip in class java.io.InputStream
Throws:
java.io.IOException

decode

protected int decode(byte[] bytes,
                     byte[] outputBuffer,
                     int position,
                     int padNumber)

decodeUnit

protected int decodeUnit(byte[] outputBuffer,
                         int position)
                  throws java.io.IOException
Throws:
java.io.IOException

getByte

protected int getByte(char character)

getEncodedByte

protected int getEncodedByte()
                      throws java.io.IOException
Throws:
java.io.IOException