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.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 JBoss, a division of Red Hat, Inc.