Package | Description |
---|---|
java.io |
Provides for system input and output through data streams and the file system.
|
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.
|
java.util.logging |
Provides the classes and interfaces of the CLDC platform's core logging facilities.
|
Modifier and Type | Class and Description |
---|---|
class |
ByteArrayOutputStream
This class implements an output stream in which the data is
written into a byte array.
|
class |
DataOutputStream
A data output stream lets an application write primitive Java data
types to an output stream in a portable way.
|
class |
PrintStream
A
PrintStream adds functionality to another output stream,
namely the ability to print representations of various data values
conveniently. |
Modifier and Type | Field and Description |
---|---|
protected OutputStream |
DataOutputStream.out
The underlying output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
ByteArrayOutputStream.writeTo(OutputStream out)
Writes the complete contents of this byte array output stream to
the specified output stream argument, as if by calling the output
stream's write method using
out.write(buf, 0, count) . |
Constructor and Description |
---|
DataOutputStream(OutputStream out)
Creates a new data output stream to write data to the specified
underlying output stream.
|
OutputStreamWriter(OutputStream out)
Creates an OutputStreamWriter that uses the default character encoding.
|
OutputStreamWriter(OutputStream out,
String charsetName)
Creates an OutputStreamWriter that uses the named charset.
|
PrintStream(OutputStream out)
Creates a new print stream.
|
PrintStream(OutputStream out,
boolean autoFlush)
Creates a new print stream.
|
PrintStream(OutputStream out,
boolean autoFlush,
String encoding)
Creates a new print stream.
|
Modifier and Type | Method and Description |
---|---|
static OutputStream |
Channels.newOutputStream(WritableByteChannel ch)
Constructs a stream that writes bytes to the given channel.
|
Modifier and Type | Method and Description |
---|---|
static WritableByteChannel |
Channels.newChannel(OutputStream out)
Constructs a channel that writes bytes to the given stream.
|
Modifier and Type | Method and Description |
---|---|
static OutputStream |
Files.newOutputStream(Path path,
OpenOption... options)
Opens or creates a file, returning an output stream that may be used to
write bytes to the file.
|
Modifier and Type | Method and Description |
---|---|
void |
Properties.store(OutputStream out,
String comments)
Writes this property list (key and element pairs) in this
Properties table to the output stream in a format suitable
for loading into a Properties table using the
load(InputStream) method. |
Modifier and Type | Method and Description |
---|---|
protected void |
StreamHandler.setOutputStream(OutputStream out)
Change the output stream.
|
Constructor and Description |
---|
StreamHandler(OutputStream out,
Formatter formatter)
Create a StreamHandler with a given Formatter
and output stream.
|
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.