Package | Description |
---|---|
java.io |
Provides for system input and output through data streams and the file system.
|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.nio.channels |
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files.
|
java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
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.
|
Modifier and Type | Field and Description |
---|---|
protected InputStream |
DataInputStream.in
The input stream.
|
Constructor and Description |
---|
DataInputStream(InputStream in)
Creates a DataInputStream that uses the specified
underlying InputStream.
|
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 in the application's
JAR file.
|
Modifier and Type | Method and Description |
---|---|
static InputStream |
Channels.newInputStream(ReadableByteChannel ch)
Constructs a stream that reads bytes from the given channel.
|
Modifier and Type | Method and Description |
---|---|
static ReadableByteChannel |
Channels.newChannel(InputStream in)
Constructs a channel that reads bytes from the given stream.
|
Modifier and Type | Method and Description |
---|---|
static InputStream |
Files.newInputStream(Path path,
OpenOption... options)
Opens a file, returning an input stream to read from the file.
|
Modifier and Type | Method and Description |
---|---|
void |
Properties.load(InputStream inStream)
Reads a property list (key and element pairs) from the input
byte stream.
|
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.