Visual Studio 6.0

FileInputStream.FileInputStream

Class Overview | Class Members | This Package | All Packages

Syntax 1
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



Syntax 2
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



Syntax 3
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

Show: