|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
net.sf.hermesftp.streams.RafInputStream
public class RafInputStream
Wrapper class for reading a RandomAccessFile through the InputStream abstraction.
| Constructor Summary | |
|---|---|
RafInputStream(java.io.File file)
Constructor. |
|
RafInputStream(java.io.File file,
long offset)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
byte[] |
readRecord()
Reads a whole record without delimiters. |
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RafInputStream(java.io.File file)
file - The input file.
public RafInputStream(java.io.File file,
long offset)
file - The input file.offset - The number of bytes to be skipped when reading the file.| Method Detail |
|---|
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException
public byte[] readRecord()
throws java.io.IOException
readRecord in interface RecordReadSupportjava.io.IOException - Throws if reading fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||