com.liferay.portal.kernel.io
Class ReaderInputStream
java.lang.Object
java.io.InputStream
com.liferay.portal.kernel.io.ReaderInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class ReaderInputStream
- extends java.io.InputStream
- Author:
- Tina Tian
| 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 |
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)
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