java.io.FileInputStream (JDK 1.0)
This class is a subclass of InputStream that reads bytes from a file specified by name or by a File or FileDescriptor object. read() reads a byte or array of bytes from the file. It returns -1 when the end of file has been reached. To read binary data, you typically use this class in conjunction with a BufferedInputStream and DataInputStream. To read text, you typically use it with an InputStreamReader and BufferedReader. Call close() to close the file when input is no longer needed.
public classFileInputStreamextends InputStream { //Public ConstructorspublicFileInputStream(Stringname) throws FileNotFoundException; publicFileInputStream(Filefile) throws FileNotFoundException; publicFileInputStream(FileDescriptorfdObj); //Public Instance Methodspublic native intavailable() throws IOException; //Overrides InputStreampublic native voidclose() throws IOException; //Overrides InputStreampublic final FileDescriptorgetFD() throws IOException; public native intread() throws IOException; //Defines InputStreampublic intread(byte[]b) throws IOException; //Overrides InputStreampublic intread(byte[]b, intoff, intlen) throws IOException; //Overrides InputStreampublic native longskip(longn) throws IOException; //Overrides InputStream//Protected Instance Methodsprotected voidfinalize() throws IOException; //Overrides Object}
Hierarchy:
Object->InputStream->FileInputStream