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, resetpublic 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 InputStreamIOException - ?public void close()
throws IOException
close in class InputStreamIOException - ?protected void finalize()
throws IOException
Objectfinalize 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 ObjectIOExceptionpublic final FileDescriptor getFD() throws IOException
IOException - ?public int read()
throws IOException
read in class InputStreamIOException - ?public int read(byte[] abyte0)
throws IOException
read in class InputStreamabyte0 - ?IOException - ?public int read(byte[] abyte0,
int i,
int j)
throws IOException
InputStreamread in class InputStreamabyte0 - ?i - ?j - ?IOException - ?public long skip(long l)
throws IOException
skip in class InputStreaml - ?IOException - ?