|
GXPARSE hosted by |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
ca.gorman.io.BinaryFileReader
public class BinaryFileReader
Convenience class for reading characters from a File
without translation from a Charset.
| Field Summary |
|---|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
BinaryFileReader(File file)
Construct on a File. |
|
| Method Summary | |
|---|---|
void |
close()
Close the stream. |
int |
read()
Read a single character. |
int |
read(char[] cbuf,
int off,
int len)
Read characters. |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryFileReader(File file)
throws IOException
Construct on a File.
NullPointerException - if file is null
IOException| Method Detail |
|---|
public int read()
throws IOException
Read a single character.
read in class Readerint that contains the character in the low
16-bits.
EOFException - if the file ends in the middle of a character
IOException
public int read(char[] cbuf,
int off,
int len)
throws IOException
Read characters.
read in class Readercbuf - characters to readoff - offset to first characterlen - number to read
IndexOutOfBoundsException - if off,
len, or their sum have values that would
identify characters outside the bounds of the array.
NullPointerException - if cbuf is null
EOFException - if the file ends in the middle of a character
IOException
public void close()
throws IOException
Close the stream. Any subsequent invocations of this method will be
ignored, but subsequent invocations of read methods will
throw an IOException.
close in interface Closeableclose in class ReaderIOException
|
GXPARSE download | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||