|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.compoze.util.ReaderInputStream
public class ReaderInputStream
This class wraps an input stream with a reader. Warning: All characters have their high order bytes stripped off.
Constructor Summary | |
---|---|
ReaderInputStream(java.io.Reader reader)
Constructor. |
Method Summary | |
---|---|
int |
read()
Read the next byte of data from the input stream. |
int |
read(byte[] array)
Read an array of bytes from the input stream. |
int |
read(byte[] array,
int iOffset,
int iLength)
Read an array of bytes from the input stream. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReaderInputStream(java.io.Reader reader)
reader
- the underlying readerMethod Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- if an i/o error occurredpublic int read(byte[] array) throws java.io.IOException
read
in class java.io.InputStream
array
- the array to read into
java.io.IOException
public int read(byte[] array, int iOffset, int iLength) throws java.io.IOException
read
in class java.io.InputStream
array
- the array to read intoiOffset
- the offset in the array to read toiLength
- the number of bytes to read
java.io.IOException
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |