Package | Description |
---|---|
java.io | |
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
Modifier and Type | Class and Description |
---|---|
class |
BufferedOutputStream
The class implements a buffered output stream.
|
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 |
FileOutputStream
A file output stream is an output stream for writing data to a
File or to a FileDescriptor . |
class |
FilterOutputStream
This class is the superclass of all classes that filter output
streams.
|
class |
ObjectOutputStream
An ObjectOutputStream writes primitive data types and graphs of Java objects
to an OutputStream.
|
class |
PipedOutputStream
A piped output stream can be connected to a piped input stream
to create a communications pipe.
|
class |
PrintStream
A
PrintStream adds functionality to another output stream,
namely the ability to print representations of various data values
conveniently. |
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 |
---|
BufferedOutputStream(OutputStream out)
Creates a new buffered output stream to write data to the
specified underlying output stream.
|
BufferedOutputStream(OutputStream out,
int size)
Creates a new buffered output stream to write data to the
specified underlying output stream with the specified buffer
size.
|
DataOutputStream(OutputStream out)
Creates a new data output stream to write data to the specified
underlying output stream.
|
FilterOutputStream(OutputStream out)
Creates an output stream filter built on top of the specified
underlying output stream.
|
ObjectOutputStream(OutputStream out)
Creates an ObjectOutputStream that writes to the specified OutputStream.
|
OutputStreamWriter(OutputStream out)
Creates an OutputStreamWriter that uses the default character encoding.
|
OutputStreamWriter(OutputStream out,
java.nio.charset.Charset cs)
Creates an OutputStreamWriter that uses the given charset.
|
OutputStreamWriter(OutputStream out,
java.nio.charset.CharsetEncoder enc)
Creates an OutputStreamWriter that uses the given charset encoder.
|
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.
|
PrintWriter(OutputStream out)
Creates a new PrintWriter, without automatic line flushing, from an
existing OutputStream.
|
PrintWriter(OutputStream out,
boolean autoFlush)
Creates a new PrintWriter from an existing OutputStream.
|
Modifier and Type | Method and Description |
---|---|
OutputStream |
Runtime.getLocalizedOutputStream(OutputStream out)
Deprecated.
As of JDK 1.1, the preferred way to translate a
Unicode character stream into a byte stream in the local encoding is via
the
OutputStreamWriter , BufferedWriter , and
PrintWriter classes. |
abstract OutputStream |
Process.getOutputStream()
Returns the output stream connected to the normal input of the
subprocess.
|
Modifier and Type | Method and Description |
---|---|
OutputStream |
Runtime.getLocalizedOutputStream(OutputStream out)
Deprecated.
As of JDK 1.1, the preferred way to translate a
Unicode character stream into a byte stream in the local encoding is via
the
OutputStreamWriter , BufferedWriter , and
PrintWriter classes. |