com.liferay.portal.kernel.io
Class ReaderInputStream
java.lang.Object
java.io.InputStream
com.liferay.portal.kernel.io.ReaderInputStream
- All Implemented Interfaces:
- Closeable, AutoCloseable
public class ReaderInputStream
- extends InputStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderInputStream
public ReaderInputStream(Reader reader)
ReaderInputStream
public ReaderInputStream(Reader reader,
String charsetName)
ReaderInputStream
public ReaderInputStream(Reader reader,
String charsetName,
int inputBufferSize,
int outputBufferSize)
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