| Package | Description |
|---|---|
| java.io | |
| java.lang | |
| java.net |
| 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. |
class |
PushbackInputStream
A
PushbackInputStream adds
functionality to another input stream, namely
the ability to "push back" or "unread"
one byte. |
| 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.
|
PushbackInputStream(InputStream in)
Creates a
PushbackInputStream
and saves its argument, the input stream
in, for later use. |
PushbackInputStream(InputStream in,
int size)
Creates a
PushbackInputStream
with a pushback buffer of the specified size,
and saves its argument, the input stream
in, for later use. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
ClassLoader.getResourceAsStream(String name)
Returns an input stream for reading the specified resource.
|
InputStream |
Class.getResourceAsStream(String name)
Finds a resource with a given name.
|
static InputStream |
ClassLoader.getSystemResourceAsStream(String name)
Open for reading, a resource of the specified name from the search path
used to load classes.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
URL.openStream()
Opens a connection to this
URL and returns an
InputStream for reading from that connection. |
Copyright © 2025 API Design. All Rights Reserved.