|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.archive.io.DiskByteQueue.FlipFileInputStream
public class DiskByteQueue.FlipFileInputStream
An input stream that supports the DiskBackedByteQueue, by always reading from the current inFile, and triggering a "flip" when one inFile is exhausted.
| Field Summary | |
|---|---|
(package private) java.io.FileInputStream |
fileStream
|
(package private) java.io.InputStream |
inStream
|
(package private) long |
position
|
| Constructor Summary | |
|---|---|
DiskByteQueue.FlipFileInputStream(long readPosition)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
(non-Javadoc) |
long |
getReadPosition()
Returns the current position of the input stream in the current file (since last flip). |
int |
read()
(non-Javadoc) |
int |
read(byte[] b)
(non-Javadoc) |
int |
read(byte[] b,
int off,
int len)
(non-Javadoc) |
| 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 |
| Field Detail |
|---|
java.io.FileInputStream fileStream
java.io.InputStream inStream
long position
| Constructor Detail |
|---|
public DiskByteQueue.FlipFileInputStream(long readPosition)
throws java.io.IOException
readPosition -
java.io.IOException| Method Detail |
|---|
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read()
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read(byte[])
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read(byte[], int, int)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionInputStream.close()public long getReadPosition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||