THE PACKAGE JAVA.IO
java.io.FileInputStream
22.4
First, if there is a security manager, its
checkRead
 method ( 20.17.19) is
called with the path represented by the
file
 argument as its argument.
If the actual file cannot be opened, a
FileNotFoundException
 is thrown.
22.4.3
public FileInputStream(FileDescriptor fdObj)
throws SecurityException
This constructor initializes a newly created
FileInputStream
 by using the file
descriptor
fdObj
, which represents an existing connection to an actual file in the
file system.
First, if there is a security manager, its
checkRead
 method ( 20.17.18) is
called with the file descriptor
fdObj
 as its argument.
22.4.4
public final FileDescriptor getFD() throws IOException
This method returns the
FileDescriptor
 object ( 22.26) that represents the con 
nection to the actual file in the file system being used by this
FileInputStream
.
22.4.5
public int read() throws IOException;
The byte for this operation is read from the actual file with which this file input
stream is connected.
Implements the
read
 method of
InputStream
 ( 22.3.1).
22.4.6
public int read(byte[] b)
throws IOException, NullPointerException
Bytes for this operation are read from the actual file with which this file input
stream is connected.
Overrides the
read
 method of
InputStream
 ( 22.3.2).
22.4.7
public int read(byte[] b, int off, int len)
throws IOException, NullPointerException,
IndexOutOfBoundsException
Bytes for this operation are read from the actual file with which this file input
stream is connected.
Overrides the
read
 method of
InputStream
 ( 22.3.3).
685






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved