|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileReader
Describe a file reader, which performs file exploration.
Method Summary | |
---|---|
void |
close()
Terminate reading, close file. |
java.lang.String |
getFileName()
Get name of reading file. |
boolean |
readBoolean()
Read boolean (1 bit, true or false) |
byte |
readByte()
Read byte (1 byte, -128 to 127) |
char |
readChar()
Read char (2 bytes, 0 to 65535) |
double |
readDouble()
Read double (8 bytes, 4.94065645841246544e-324d to 1.79769313486231570e+308d) |
float |
readFloat()
Read float (4 bytes, 1.40129846432481707e-45 to 3.40282346638528860e+38) |
int |
readInteger()
Read integer (4 bytes, -2.147.483.648 to 2.147.483.647) |
long |
readLong()
Read long (8 bytes, -9.223.372.036.854.775.808 to 9.223.372.036.854.775.807) |
short |
readShort()
Read short (2 bytes, -32.768 to 32.767) |
java.lang.String |
readString()
Read a sequence of chars (2 bytes and more) |
Method Detail |
---|
boolean readBoolean() throws java.io.IOException
java.io.IOException
- error on reading.byte readByte() throws java.io.IOException
java.io.IOException
- error on reading.char readChar() throws java.io.IOException
java.io.IOException
- error on reading.short readShort() throws java.io.IOException
java.io.IOException
- error on reading.int readInteger() throws java.io.IOException
java.io.IOException
- error on reading.float readFloat() throws java.io.IOException
java.io.IOException
- error on reading.long readLong() throws java.io.IOException
java.io.IOException
- error on reading.double readDouble() throws java.io.IOException
java.io.IOException
- error on reading.java.lang.String readString() throws java.io.IOException
java.io.IOException
- error on reading.void close() throws java.io.IOException
java.io.IOException
- error on closing.java.lang.String getFileName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |