
public final class ReaderInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
ReaderInputStream(java.io.Reader reader)
Construct a new instance.
|
ReaderInputStream(java.io.Reader reader,
java.nio.charset.Charset charset)
Construct a new instance.
|
ReaderInputStream(java.io.Reader reader,
java.nio.charset.CharsetEncoder encoder)
Construct a new instance.
|
ReaderInputStream(java.io.Reader reader,
java.nio.charset.CharsetEncoder encoder,
int bufferSize)
Construct a new instance.
|
ReaderInputStream(java.io.Reader reader,
java.lang.String charsetName)
Construct a new instance.
|
public ReaderInputStream(java.io.Reader reader)
reader - the reader to encode frompublic ReaderInputStream(java.io.Reader reader,
java.lang.String charsetName)
throws java.io.UnsupportedEncodingException
reader - the reader to encode fromcharsetName - the character set namejava.io.UnsupportedEncodingException - if the character set is not supportedpublic ReaderInputStream(java.io.Reader reader,
java.nio.charset.Charset charset)
reader - the reader to encode fromcharset - the character setpublic ReaderInputStream(java.io.Reader reader,
java.nio.charset.CharsetEncoder encoder)
reader - the reader to encode fromencoder - the character set encoderpublic ReaderInputStream(java.io.Reader reader,
java.nio.charset.CharsetEncoder encoder,
int bufferSize)
reader - the reader to encode fromencoder - the character set encoderbufferSize - the buffer size to usepublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 JBoss, a division of Red Hat, Inc.