public class FileInputStream extends InputStream
| Constructor and Description |
|---|
FileInputStream(File file) |
FileInputStream(FileDescriptor fd) |
FileInputStream(String fname) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
FileChannel |
getChannel() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
mark, markSupported, resetpublic FileInputStream(String fname) throws FileNotFoundException
FileNotFoundExceptionpublic FileInputStream(File file) throws FileNotFoundException
FileNotFoundExceptionpublic FileInputStream(FileDescriptor fd)
public int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic FileChannel getChannel()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException