| Package | Description |
|---|---|
| java.io | |
| java.lang | |
| java.net | |
| java.util.zip |
Provides classes for reading and writing the standard ZIP and GZIP
file formats.
|
| 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 |
ObjectInputStream
An ObjectInputStream deserializes primitive data and objects previously
written using an ObjectOutputStream.
|
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.
|
ObjectInputStream(InputStream in)
Creates an ObjectInputStream that reads from the specified InputStream.
|
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. |
| Modifier and Type | Class and Description |
|---|---|
class |
InflaterInputStream
This class implements a stream filter for uncompressing data in the
"deflate" compression format.
|
class |
ZipInputStream
This class implements an input stream filter for reading files in the
ZIP file format.
|
| Constructor and Description |
|---|
InflaterInputStream(InputStream in)
Creates a new input stream with a default decompressor and buffer size.
|
InflaterInputStream(InputStream in,
Inflater inf)
Creates a new input stream with the specified decompressor and a
default buffer size.
|
InflaterInputStream(InputStream in,
Inflater inf,
int size)
Creates a new input stream with the specified decompressor and
buffer size.
|
ZipInputStream(InputStream in)
Creates a new ZIP input stream.
|
Copyright © 2013 API Design. All Rights Reserved.