|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.abstracthorizon.danube.webdav.fs.RandomAccessFileRangeInputStream
public class RandomAccessFileRangeInputStream
Input stream that is based on RandomAccessFile and has given
offset and length.
| Field Summary | |
|---|---|
protected long |
initialOffset
Initial offset |
protected long |
len
Number of bytes that can be read |
protected long |
mark
Mark pointer |
protected long |
markLen
Mark length |
protected RandomAccessFile |
raf
Random access file reference |
| Constructor Summary | |
|---|---|
RandomAccessFileRangeInputStream(File file,
long from,
long length)
Constructor |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
mark(int i)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] buf,
int from,
int length)
|
void |
reset()
|
long |
skip(long l)
|
| Methods inherited from class java.io.InputStream |
|---|
available, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RandomAccessFile raf
protected long len
protected long initialOffset
protected long mark
protected long markLen
| Constructor Detail |
|---|
public RandomAccessFileRangeInputStream(File file,
long from,
long length)
throws IOException
file - a filefrom - initial offsetlength - length
IOException - thrown from RandomAccessFile| Method Detail |
|---|
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] buf,
int from,
int length)
throws IOException
read in class InputStreamIOException
public long skip(long l)
throws IOException
skip in class InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOExceptionpublic void mark(int i)
mark in class InputStream
public void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||