|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
uk.me.parabola.io.StructuredInputStream
public class StructuredInputStream
An input stream used to make reading little endian integers and strings from the tdb file.
Constructor Summary | |
---|---|
StructuredInputStream(java.io.InputStream in)
|
Method Summary | |
---|---|
int |
read()
Implementation of read that delegates to the underlying stream. |
int |
read2()
Read a 2 byte little endian integer. |
int |
read4()
Read a 4 byte integer quantity. |
java.lang.String |
readString()
Read a nul terminated string from the input stream. |
boolean |
testEof()
Test if we are at the end of the file by marking the position and trying to read the next byte. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StructuredInputStream(java.io.InputStream in)
Method Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- For problems reading.public int read2() throws java.io.IOException
java.io.IOException
- If the stream could not be read.public int read4() throws java.io.IOException
java.io.IOException
- If the stream could not be read.public java.lang.String readString() throws java.io.IOException
java.io.IOException
- If the stream cannot be read.public boolean testEof()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |