public PrintWriter append (CharSequence csq)
Overriding: java.io.Writer
Appends the specified character sequence to this writer.
An invocation of this method of the form out.append(csq)
behaves in exactly the same way as the invocation
out.write(csq.toString())
Depending on the specification of toString
for the
character sequence csq
, the entire sequence may not be
appended. For instance, invoking the toString
method of a
character buffer will return a subsequence whose content depends upon
the buffer's position and limit.
Returns: This writer
Since: 1.5
public
PrintWriter append (
char c)
Overriding: java.io.Writer
Appends the specified character to this writer.
An invocation of this method of the form out.append(c)
behaves in exactly the same way as the invocation
out.write(c)
Returns: This writer
Since: 1.5
public
PrintWriter append (
CharSequence csq,
int start,
int end)
Overriding: java.io.Writer
Appends a subsequence of the specified character sequence to this writer.
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.write(csq.subSequence(start, end).toString())
Returns: This writer
Since: 1.5
Overriding: java.io.Writer
Closes the stream and releases any system resources associated
with it. Closing a previously closed stream has no effect.
See also:
checkError()
public
void write (
int c)
Overriding: java.io.Writer
Writes a single character.
Parameters:
c | | int specifying a character to be written. |
public
void write (
char[] buf)
Overriding: java.io.Writer
Writes an array of characters. This method cannot be inherited from the
Writer class because it must suppress I/O exceptions.
Parameters:
buf | | Array of characters to be written |
public
void write (
String s)
Overriding: java.io.Writer
Writes a string. This method cannot be inherited from the Writer class
because it must suppress I/O exceptions.
Parameters:
public
void write (
char[] buf,
int off,
int len)
Overriding: java.io.Writer
Writes A Portion of an array of characters.
Parameters:
buf | | Array of characters |
off | | Offset from which to start writing characters |
len | | Number of characters to write |
public
void write (
String s,
int off,
int len)
Overriding: java.io.Writer
Writes a portion of a string.
Parameters:
s | | A String |
off | | Offset from which to start writing characters |
len | | Number of characters to write |