|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.norther.tammi.acorn.io.ReaderInputStream
public class ReaderInputStream
An input stream reading UTF-16 chars directly from a reader.
Note that BOMs are skipped.
Constructor Summary | |
---|---|
ReaderInputStream(Reader r)
Constructs a new stream. |
|
ReaderInputStream(Reader r,
boolean s)
Constructs a new stream optionally stripping the high order byte. |
Method Summary | |
---|---|
int |
read()
|
int |
read(byte[] bb,
int off,
int len)
|
protected int |
readChar()
Reads one character. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReaderInputStream(Reader r)
r
- the reader.public ReaderInputStream(Reader r, boolean s)
r
- the reader.s
- true to strip, false otherwise.Method Detail |
---|
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] bb, int off, int len) throws IOException
read
in class InputStream
IOException
protected int readChar() throws IOException
IOException
- on I/O errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |