当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
ReaderInputStream (NetBeans APIs) - NetBeans API Javadoc 4.1.0
org.openide.util.io
Class ReaderInputStream
java.lang.Object
java.io.InputStream
org.openide.util.io.ReaderInputStream
- public class ReaderInputStream
- extends InputStream
This class convert Reader to InputStream. It works by converting
the characters to the encoding specified in constructor parameter.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderInputStream
public ReaderInputStream(Reader reader)
throws IOException
- Creates new input stream from the given reader.
Uses the platform default encoding.
- Parameters:
reader
- Input reader
ReaderInputStream
public ReaderInputStream(Reader reader,
String encoding)
throws IOException
- Creates new input stream from the given reader and encoding.
- Parameters:
reader
- Input readerencoding
-
read
public int read()
throws IOException
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Throws:
IOException
available
public int available()
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException