Creates a
FileInputStream
by using the file descriptor
fdObj
, which represents an existing connection to an actual file in the file system.
If there is a security manager, its checkRead
method is called with the file descriptor fdObj
as its argument to see if it's ok to read the file descriptor. If read access is denied to the file descriptor a SecurityException
is thrown.
If fdObj
is null then a NullPointerException
is thrown.
This constructor does not throw an exception if fdObj
is invalid
. However, if the methods are invoked on the resulting stream to attempt I/O on the stream, an IOException
is thrown.