char sequences and values can be appended. The
Appendable interface must be implemented by any class whose
instances are intended to receive formatted output from a java.util.Formatter .
The characters to be appended should be valid Unicode characters as
described in Unicode Character
Representation. Note that supplementary characters may be composed of
multiple 16-bit char values.
Appendables are not necessarily safe for multithreaded access. Thread safety is the responsibility of classes that extend and implement this interface.
Since this interface may be implemented by existing classes with different styles of error handling there is no guarantee that errors will be propagated to the invoker.
| Modifier and Type | Method and Description |
|---|---|
| public Appendable | Returns: A reference to thisAppendableThe character sequence to append. If csq)csq is
null, then the four characters "null" are
appended to this Appendable.Appends the specified character sequence to this |
| public Appendable | Returns: A reference to thisAppendableThe character sequence from which a subsequence will be
appended. If csq, int csq is null, then characters
will be appended as if csq contained the four
characters "null".The index of the first character in the subsequence start, int The index of the character following the last character in the
subsequence end)Appends a subsequence of the specified character sequence to this
|
| public Appendable | Returns: A reference to thisAppendableThe character to append c)Appends the specified character to this |
| append | back to summary |
|---|---|
| public Appendable append(CharSequence csq) throws IOException Appends the specified character sequence to this Depending on which class implements the character sequence
The contents of this
| |
| append | back to summary |
|---|---|
| public Appendable append(CharSequence csq, int start, int end) throws IOException Appends a subsequence of the specified character sequence to this
An invocation of this method of the form
out.append(csq.subSequence(start, end))
The contents of this
| |
| append | back to summary |
|---|---|
| public Appendable append(char c) throws IOException Appends the specified character to this
| |