Name
Appendable
Synopsis
Objects that implement this
interface can have characters or character sequences appended to
them. Appendable
was added in Java 5.0 as a simple
unifying API for StringBuffer
and
StringBuilder
,
java.nio.CharBuffer
, and character output stream
subclasses of java.io.Writer
. The
java.util.Formatter
class can send formatted
output to any Appendable
object. See also
Readable
.
public interface Appendable { // Public Instance Methods Appendable append(char c) throws java.io.IOException; Appendable append(CharSequence csq) throws java.io.IOException; Appendable append(CharSequence csq, int start, int end) throws java.io.IOException; }
Implementations
java.io.PrintStream
,
java.io.Writer
,
java.nio.CharBuffer
Passed To
java.util.Formatter.Formatter( )
Returned By
Too many methods to list.
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.