|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.io.RandomAccess
public final class RandomAccess
This class allows positional read access.
Constructor Summary | |
---|---|
RandomAccess(java.lang.String f)
Constructor, initializing the file reader. |
Method Summary | |
---|---|
void |
close()
Closes the data access. |
void |
cursor(long p)
Sets the disk cursor. |
boolean |
more()
Checks if more bytes can be read. |
long |
pos()
Returns the input position. |
int |
read()
Reads the next byte. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomAccess(java.lang.String f) throws java.io.IOException
f
- the file to be read
java.io.IOException
- IO ExceptionMethod Detail |
---|
public void close() throws java.io.IOException
java.io.IOException
- in case of write errorspublic void cursor(long p) throws java.io.IOException
p
- read position
java.io.IOException
- I/O exceptionpublic int read() throws java.io.IOException
java.io.IOException
- I/O exceptionpublic long pos()
public boolean more()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |