Package | Description |
---|---|
java.io |
Provides classes for input and output through data streams.
|
java.lang |
Provides classes that are fundamental to the Java programming
language.
|
javax.microedition.io |
Classes for the Generic Connection framework.
|
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.
|
Modifier and Type | Field and Description |
---|---|
protected InputStream |
DataInputStream.in
The input stream.
|
Constructor and Description |
---|
DataInputStream(InputStream in)
Creates a
DataInputStream
and saves its argument, the input stream
in , for later use. |
InputStreamReader(InputStream is)
Create an InputStreamReader that uses the default character encoding.
|
InputStreamReader(InputStream is,
String enc)
Create an InputStreamReader that uses the named character encoding.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
Class.getResourceAsStream(String name)
Finds a resource with a given name in the application's
JAR file.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
InputConnection.openInputStream()
Open and return an input stream for a connection.
|
static InputStream |
Connector.openInputStream(String name)
Create and open a connection input stream.
|
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.