|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.eclipse.osgi.framework.internal.reliablefile.ReliableFileInputStream
public class ReliableFileInputStream
A ReliableFile FileInputStream replacement class. This class can be used just like FileInputStream. The class is in partnership with ReliableFileOutputStream to avoid losing file data by using multiple files.
ReliableFileOutputStream| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
ReliableFileInputStream(java.io.File file)
Constructs a new ReliableFileInputStream on the File file. |
|
ReliableFileInputStream(java.io.File file,
int generation,
int openMask)
Constructs a new ReliableFileInputStream on the File file. |
|
ReliableFileInputStream(java.lang.String name)
Constructs a new ReliableFileInputStream on the file named name. |
|
| Method Summary | |
|---|---|
int |
available()
Override default available method. |
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
void |
mark(int readlimit)
Override default mark method. |
boolean |
markSupported()
Override default markSupported method. |
int |
read()
Override default FilterInputStream method. |
int |
read(byte[] b)
Override default FilterInputStream method. |
int |
read(byte[] b,
int off,
int len)
Override default FilterInputStream method. |
void |
reset()
Override default reset method. |
long |
skip(long n)
Override default skip method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReliableFileInputStream(java.lang.String name)
throws java.io.IOException
name. If the
file does not exist, the FileNotFoundException is thrown.
The name may be absolute or relative
to the System property "user.dir".
name - the file on which to stream reads.
java.io.IOException - If an error occurs opening the file.
public ReliableFileInputStream(java.io.File file)
throws java.io.IOException
file. If the
file does not exist, the FileNotFoundException is thrown.
file - the File on which to stream reads.
java.io.IOException - If an error occurs opening the file.
public ReliableFileInputStream(java.io.File file,
int generation,
int openMask)
throws java.io.IOException
file. If the
file does not exist, the FileNotFoundException is thrown.
file - the File on which to stream reads.generation - a specific generation requested.openMask - mask used to open data.
are invalid (corrupt, missing, etc).
java.io.IOException - If an error occurs opening the file.| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.FilterInputStreamjava.io.IOException - If an error occurs closing the file.
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionFilterInputStream.read(byte[], int, int)
public int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionFilterInputStream.read(byte[])
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionFilterInputStream.read()
public int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionFilterInputStream.available()
public long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionFilterInputStream.skip(long)public boolean markSupported()
markSupported in class java.io.FilterInputStreamFilterInputStream.markSupported()public void mark(int readlimit)
mark in class java.io.FilterInputStreamFilterInputStream.mark(int)
public void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOExceptionFilterInputStream.reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||