Java java.io FileInputStream fields, constructors, methods, implement or subclass

Example usage for Java java.io FileInputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io FileInputStream.

The text is from its open source code.

Subclass

java.io.FileInputStream has subclasses.
Click this link to see all its subclasses.

Constructor

FileInputStream(String name)
Creates a FileInputStream by opening a connection to an actual file, the file named by the path name name in the file system.
FileInputStream(File file)
Creates a FileInputStream by opening a connection to an actual file, the file named by the File object file in the file system.
FileInputStream(FileDescriptor fdObj)
Creates a FileInputStream by using the file descriptor fdObj, which represents an existing connection to an actual file in the file system.

Method

intavailable()
Returns an estimate of the number of remaining bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.
voidclose()
Closes this file input stream and releases any system resources associated with the stream.
FileChannelgetChannel()
Returns the unique java.nio.channels.FileChannel FileChannel object associated with this file input stream.
ClassgetClass()
Returns the runtime class of this Object .
FileDescriptorgetFD()
Returns the FileDescriptor object that represents the connection to the actual file in the file system being used by this FileInputStream.
inthashCode()
Returns a hash code value for the object.
voidmark(int readlimit)
Marks the current position in this input stream.
booleanmarkSupported()
Tests if this input stream supports the mark and reset methods.
intread()
Reads a byte of data from this input stream.
intread(byte b[], int off, int len)
Reads up to len bytes of data from this input stream into an array of bytes.
intread(byte b[])
Reads up to b.length bytes of data from this input stream into an array of bytes.
voidreset()
Repositions this stream to the position at the time the mark method was last called on this input stream.
longskip(long n)
Skips over and discards n bytes of data from the input stream.
StringtoString()
Returns a string representation of the object.