com.liferay.portal.kernel.io
Class ReaderInputStream

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

public class ReaderInputStream
extends java.io.InputStream

Author:
Tina Tian

Constructor Summary
ReaderInputStream(java.io.Reader reader)
           
ReaderInputStream(java.io.Reader reader, java.lang.String charsetName)
           
ReaderInputStream(java.io.Reader reader, java.lang.String charsetName, int inputBufferSize, int outputBufferSize)
           
 
Method Summary
 int available()
           
 void close()
           
 java.lang.String getEncoding()
           
 int read()
           
 int read(byte[] bytes)
           
 int read(byte[] bytes, int offset, int length)
           
 long skip(long length)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderInputStream

public ReaderInputStream(java.io.Reader reader)

ReaderInputStream

public ReaderInputStream(java.io.Reader reader,
                         java.lang.String charsetName)

ReaderInputStream

public ReaderInputStream(java.io.Reader reader,
                         java.lang.String charsetName,
                         int inputBufferSize,
                         int outputBufferSize)
Method Detail

available

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

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

getEncoding

public java.lang.String getEncoding()

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[] bytes)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

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

skip

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