Appends the specified character sequence to this output stream.
An invocation of this method of the form out.append(csq)
behaves in exactly the same way as the invocation
out.print(csq.toString())
Depending on the specification of toString for the
character sequence csq, the entire sequence may not be
appended. For instance, invoking then toString method of a
character buffer will return a subsequence whose content depends upon
the buffer's position and limit.
Appends the specified character to this output stream.
An invocation of this method of the form out.append(c)
behaves in exactly the same way as the invocation
out.print(c)
Appends a subsequence of the specified character sequence to this output stream.
An invocation of this method of the form
out.append(csq, start, end) when
csq is not null, behaves in
exactly the same way as the invocation
out.print(csq.subSequence(start, end).toString())
Closes the stream. This is done by flushing the stream and then closing the underlying output stream.
java.io.OutputStream.close()
Flushes the stream. This is done by writing any buffered output bytes to the underlying output stream and then flushing that stream.
java.io.OutputStream.flush()
Writes the specified byte to this stream. If the byte is a newline and
automatic flushing is enabled then the flush method will be
invoked.
Note that the byte is written as given; to write a character that
will be translated according to the platform's default character
encoding, use the print(char) or println(char)
methods.
b | The byte to be written |
print(char), println(char)
Writes len bytes from the specified byte array starting at
offset off to this stream. If automatic flushing is
enabled then the flush method will be invoked.
Note that the bytes will be written as given; to write characters
that will be translated according to the platform's default character
encoding, use the print(char) or println(char)
methods.
buf | A byte array | |
off | Offset from which to start taking bytes | |
len | Number of bytes to write |
Diagram: OutputStream