public class FileInputStream extends InputStream
Constructor and Description |
---|
FileInputStream(File file) |
FileInputStream(FileDescriptor fdObj) |
FileInputStream(String path) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
protected void |
finalize()
The default finalizer does nothing.
|
FileDescriptor |
getFD() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
mark, markSupported, reset
public FileInputStream(String path) throws SecurityException, FileNotFoundException
public FileInputStream(File file) throws SecurityException, FileNotFoundException
public FileInputStream(FileDescriptor fdObj) throws SecurityException
SecurityException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException, NullPointerException
read
in class InputStream
IOException
NullPointerException
public int read(byte[] b, int off, int len) throws IOException, NullPointerException, ArrayIndexOutOfBoundsException
read
in class InputStream
IOException
NullPointerException
ArrayIndexOutOfBoundsException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in class InputStream
IOException
public final FileDescriptor getFD() throws IOException
IOException
protected void finalize() throws IOException
Object
finalize
in class Object
IOException