FileInputStream.FileInputStream
Class Overview | Class Members |
This Package |
All Packages
public FileInputStream( String name ) throws FileNotFoundException
Parameters
- name
- the system-dependent file name.
Description
Creates an input file stream to read from a file with the
specified name.
Exceptions
FileNotFoundException
if the file is not found.
Exceptions
SecurityException
if a security manager exists, its
checkRead method is called with the name
argument to see if the application is allowed read access
to the file.
See Also
checkRead
public FileInputStream( File file ) throws FileNotFoundException
Parameters
- file
- the file to be opened for reading.
Description
Creates an input file stream to read from the specified
File object.
Exceptions
FileNotFoundException
if the file is not found.
Exceptions
SecurityException
if a security manager exists, its
checkRead method is called with the pathname
of this File argument to see if the
application is allowed read access to the file.
See Also
getPath, checkRead
public FileInputStream( FileDescriptor fdObj )
Parameters
- fdObj
- the file descriptor to be opened for reading.
Description
Creates an input file stream to read from the specified file descriptor.
Exceptions
SecurityException
if a security manager exists, its
checkRead method is called with the file
descriptor to see if the application is allowed to read
from the specified file descriptor.
See Also
checkRead