Package | Description |
---|---|
java.io | |
java.net |
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 |
FilterOutputStream
This class is the superclass of all classes that filter output streams.
|
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 |
---|
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.
|
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 |
---|---|
OutputStream |
Socket.getOutputStream()
Returns an output stream for this socket.
|