|
XNIO API 3.0.4.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 frompublic ReaderInputStream(Reader reader, String charsetName) throws UnsupportedEncodingException
reader
- the reader to encode fromcharsetName
- the character set name
UnsupportedEncodingException
- if the character set is not supportedpublic ReaderInputStream(Reader reader, Charset charset)
reader
- the reader to encode fromcharset
- the character setpublic ReaderInputStream(Reader reader, CharsetEncoder encoder)
reader
- the reader to encode fromencoder
- the character set encoderpublic ReaderInputStream(Reader reader, CharsetEncoder encoder, int bufferSize)
reader
- the reader to encode fromencoder
- the character set encoderbufferSize
- the buffer size to useMethod Detail |
---|
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
public String toString()
toString
in class Object
|
XNIO API 3.0.4.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |