Liferay 6.2-ce-ga5

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:
Closeable, AutoCloseable

public class ReaderInputStream
extends InputStream


Constructor Summary
ReaderInputStream(Reader reader)
           
ReaderInputStream(Reader reader, String charsetName)
           
ReaderInputStream(Reader reader, String charsetName, int inputBufferSize, int outputBufferSize)
           
 
Method Summary
 int available()
           
 void close()
           
 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(Reader reader)

ReaderInputStream

public ReaderInputStream(Reader reader,
                         String charsetName)

ReaderInputStream

public ReaderInputStream(Reader reader,
                         String charsetName,
                         int inputBufferSize,
                         int outputBufferSize)
Method Detail

available

public int available()
Overrides:
available in class InputStream

close

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

getEncoding

public String getEncoding()

read

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

read

public int read(byte[] bytes)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

read

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

skip

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

Liferay 6.2-ce-ga5