|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.xnio.streams.ReaderInputStream
public final class ReaderInputStream
An input stream which encodes characters into bytes.
| Constructor Summary | |
|---|---|
ReaderInputStream(Reader reader)
Construct a new instance. |
|
ReaderInputStream(Reader reader,
Charset charset)
Construct a new instance. |
|
ReaderInputStream(Reader reader,
CharsetEncoder encoder)
Construct a new instance. |
|
ReaderInputStream(Reader reader,
CharsetEncoder encoder,
int bufferSize)
Construct a new instance. |
|
ReaderInputStream(Reader reader,
String charsetName)
Construct a new instance. |
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
|
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
long |
skip(long n)
|
String |
toString()
Get a string representation of this object. |
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, read, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReaderInputStream(Reader reader)
reader - the reader to encode from
public ReaderInputStream(Reader reader,
String charsetName)
throws UnsupportedEncodingException
reader - the reader to encode fromcharsetName - the character set name
UnsupportedEncodingException - if the character set is not supported
public ReaderInputStream(Reader reader,
Charset charset)
reader - the reader to encode fromcharset - the character set
public ReaderInputStream(Reader reader,
CharsetEncoder encoder)
reader - the reader to encode fromencoder - the character set encoder
public ReaderInputStream(Reader reader,
CharsetEncoder encoder,
int bufferSize)
reader - the reader to encode fromencoder - the character set encoderbufferSize - the buffer size to use| Method Detail |
|---|
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOException
public long skip(long n)
throws IOException
skip in class InputStreamIOException
public int available()
throws IOException
available in class InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOExceptionpublic String toString()
toString in class Object
|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||