Package | Description |
---|---|
java.io |
Contains Input/Output streams communication classes.
|
java.lang |
Contains core language classes.
|
Modifier and Type | Class and Description |
---|---|
class |
ByteArrayInputStream
A
ByteArrayInputStream contains an internal buffer that contains bytes that may be
read from the stream. |
class |
DataInputStream
A data input stream lets an application read primitive Java data types from an underlying input
stream in a machine-independent way.
|
class |
FilterInputStream
A
FilterInputStream contains some other input stream, which it uses as its basic
source of data, possibly transforming the data along the way or providing additional
functionality. |
Modifier and Type | Field and Description |
---|---|
protected InputStream |
FilterInputStream.in
The input stream to be filtered.
|
Constructor and Description |
---|
DataInputStream(InputStream in)
Creates a DataInputStream that uses the specified underlying InputStream.
|
FilterInputStream(InputStream in)
Creates a
FilterInputStream by assigning the argument in to the field
this.in so as to remember it for later use. |
InputStreamReader(InputStream in)
Creates an InputStreamReader that uses the default charset.
|
InputStreamReader(InputStream in,
String charsetName)
Creates an InputStreamReader that uses the named charset.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
Class.getResourceAsStream(String name)
Finds a resource with a given name.
|