|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
org.abstracthorizon.mercury.common.io.AdvancedFileReader
public class AdvancedFileReader
File reader that can uses random access file.
Field Summary | |
---|---|
protected RandomAccessFile |
file
Random access file |
protected long |
mark
Mark |
protected long |
size
Size |
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
AdvancedFileReader(File file,
long from,
long size)
Constructor |
Method Summary | |
---|---|
void |
close()
|
void |
mark()
Marks position in a file |
boolean |
markSupported()
|
int |
read(char[] cbuf,
int off,
int len)
|
boolean |
ready()
|
void |
reset()
|
long |
skip(long n)
|
Methods inherited from class java.io.Reader |
---|
mark, read, read, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long size
protected long mark
protected RandomAccessFile file
Constructor Detail |
---|
public AdvancedFileReader(File file, long from, long size) throws IOException
file
- filefrom
- starting offsetsize
- size
IOException
Method Detail |
---|
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in class Reader
IOException
public boolean markSupported()
markSupported
in class Reader
public void mark() throws IOException
IOException
public void reset() throws IOException
reset
in class Reader
IOException
public boolean ready()
ready
in class Reader
public long skip(long n) throws IOException
skip
in class Reader
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |