|
|||||||||
| Home >> All >> java >> [ io overview ] | PREV NEXT | ||||||||
Uses of Class
java.io.InputStream
| Uses of InputStream in java.io |
| Subclasses of InputStream in java.io | |
class |
BufferedInputStream
This subclass of FilterInputStream buffers input from an
underlying implementation to provide a possibly more efficient read
mechanism. |
class |
ByteArrayInputStream
This class permits an array of bytes to be read as an input stream. |
class |
DataInputStream
This subclass of FilteredInputStream implements the
DataInput interface that provides method for reading primitive
Java data types from a stream. |
class |
FileInputStream
This class is a stream that reads its bytes from a file. |
class |
FilterInputStream
This is the common superclass of all standard classes that filter input. |
class |
LineNumberInputStream
Deprecated. This class is deprecated in favor if LineNumberReader because it operates on ASCII bytes
instead of an encoded character stream. This class is for backward
compatibility only and should not be used in new applications. |
class |
ObjectInputStream
|
class |
PipedInputStream
An input stream that reads its bytes from an output stream to which it is connected. |
class |
PushbackInputStream
This subclass of FilterInputStream provides the ability to
unread data from a stream. |
class |
SequenceInputStream
This class merges a sequence of multiple InputStream's in
order to form a single logical stream that can be read by applications
that expect only one stream. |
class |
StringBufferInputStream
Deprecated. |
| Fields in java.io declared as InputStream | |
protected InputStream |
FilterInputStream.in
This is the subordinate InputStream to which method calls
are redirected |
private InputStream |
InputStreamReader.in
The input stream. |
private InputStream |
SequenceInputStream.in
The handle for the current input stream. |
private InputStream |
SequenceInputStream.in2
Secondary input stream; not used if constructed w/ enumeration. |
| Methods in java.io that return InputStream | |
private InputStream |
SequenceInputStream.getNextStream()
This private method is used to get the next InputStream to
read from. |
| Constructors in java.io with parameters of type InputStream | |
FilterInputStream(InputStream in)
Create a FilterInputStream with the specified subordinate
InputStream. |
|
BufferedInputStream(InputStream in)
This method initializes a new BufferedInputStream that will
read from the specified subordinate stream with a default buffer size
of 2048 bytes |
|
BufferedInputStream(InputStream in,
int size)
This method initializes a new BufferedInputStream that will
read from the specified subordinate stream with a buffer size that
is specified by the caller. |
|
DataInputStream(InputStream in)
This constructor initializes a new DataInputStream
to read from the specified subordinate stream. |
|
InputStreamReader(InputStream in)
This method initializes a new instance of InputStreamReader
to read from the specified stream using the default encoding. |
|
InputStreamReader(InputStream in,
java.lang.String encoding_name)
This method initializes a new instance of InputStreamReader
to read from the specified stream using a caller supplied character
encoding scheme. |
|
InputStreamReader(InputStream in,
java.nio.charset.Charset charset)
Creates an InputStreamReader that uses a decoder of the given charset to decode the bytes in the InputStream into characters. |
|
InputStreamReader(InputStream in,
java.nio.charset.CharsetDecoder decoder)
Creates an InputStreamReader that uses the given charset decoder to decode the bytes in the InputStream into characters. |
|
StreamTokenizer(InputStream is)
Deprecated. Since JDK 1.1. |
|
ObjectInputStream(InputStream in)
Creates a new ObjectInputStream that will do all of
its reading from in. |
|
PushbackInputStream(InputStream in)
This method initializes a PushbackInputStream to
read from the specified subordinate InputStream
with a default pushback buffer size of 1. |
|
PushbackInputStream(InputStream in,
int size)
This method initializes a PushbackInputStream to
read from the specified subordinate InputStream with
the specified buffer size |
|
SequenceInputStream(InputStream s1,
InputStream s2)
This method creates a new SequenceInputStream that will read
the two specified subordinate InputStreams in sequence. |
|
LineNumberInputStream(InputStream in)
Deprecated. Create a new LineNumberInputStream that reads from the
specified subordinate InputStream |
|
|
|||||||||
| Home >> All >> java >> [ io overview ] | PREV NEXT | ||||||||