public class FileInputStream extends InputStream
Constructor and Description |
---|
FileInputStream(File file) |
FileInputStream(FileDescriptor filedescriptor) |
FileInputStream(String s) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
FileDescriptor |
getFD() |
int |
read() |
int |
read(byte[] abyte0) |
int |
read(byte[] abyte0,
int i,
int j)
Read byte data until there is no more available.
|
long |
skip(long l) |
mark, markSupported, reset
public FileInputStream(File file) throws FileNotFoundException
file
- ?FileNotFoundException
- ?public FileInputStream(FileDescriptor filedescriptor)
filedescriptor
- ?public FileInputStream(String s) throws FileNotFoundException
s
- ?FileNotFoundException
- ?public int available() throws IOException
available
in class InputStream
IOException
- ?public void close() throws IOException
close
in class InputStream
IOException
- ?protected void finalize() throws IOException
Object
finalize
method to dispose of
system resources or to perform other cleanup.
Any exception thrown by the finalize
method causes
the finalization of this object to be halted, but is otherwise
ignored.
The finalize
method in Object
does
nothing.
finalize
in class Object
IOException
public final FileDescriptor getFD() throws IOException
IOException
- ?public int read() throws IOException
read
in class InputStream
IOException
- ?public int read(byte[] abyte0) throws IOException
read
in class InputStream
abyte0
- ?IOException
- ?public int read(byte[] abyte0, int i, int j) throws IOException
InputStream
read
in class InputStream
abyte0
- ?i
- ?j
- ?IOException
- ?public long skip(long l) throws IOException
skip
in class InputStream
l
- ?IOException
- ?