Package | Description |
---|---|
java.io |
Provides for system input and output through data streams,
serialization and the file system.
|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages.
|
java.util.regex |
Classes for matching character sequences against patterns specified by regular
expressions.
|
javax.swing.text.html.parser |
Provides the default HTML parser, along with support classes.
|
Modifier and Type | Method and Description |
---|---|
StringBuffer |
StringWriter.getBuffer()
Return the string buffer itself.
|
Modifier and Type | Method and Description |
---|---|
StringBuffer |
StringBuffer.append(boolean value)
Adds the string representation of the specified boolean to the
end of this StringBuffer.
|
StringBuffer |
StringBuffer.append(char ch)
Adds the specified character to the end of
this StringBuffer.
|
StringBuffer |
StringBuffer.append(char[] chars)
Adds the character array to the end of this StringBuffer.
|
StringBuffer |
StringBuffer.append(char[] chars,
int start,
int length)
Adds the specified sequence of characters to the end of
this StringBuffer.
|
StringBuffer |
StringBuffer.append(CharSequence sequence)
Adds the specified CharSequence to the end of this StringBuffer.
|
StringBuffer |
StringBuffer.append(CharSequence sequence,
int start,
int end)
Adds the specified CharSequence to the end of this StringBuffer.
|
StringBuffer |
StringBuffer.append(double value)
Adds the string representation of the specified double to the
end of this StringBuffer.
|
StringBuffer |
StringBuffer.append(float value)
Adds the string representation of the specified float to the
end of this StringBuffer.
|
StringBuffer |
StringBuffer.append(int value)
Adds the string representation of the specified integer to the
end of this StringBuffer.
|
StringBuffer |
StringBuffer.append(long value)
Adds the string representation of the specified long to the
end of this StringBuffer.
|
StringBuffer |
StringBuffer.append(Object value)
Adds the string representation of the specified object to the
end of this StringBuffer.
|
StringBuffer |
StringBuffer.append(String string)
Adds the specified string to the end of this StringBuffer.
|
StringBuffer |
StringBuffer.append(StringBuffer buffer)
Adds the specified StringBuffer to the end of this StringBuffer.
|
StringBuffer |
StringBuffer.appendCodePoint(int codePoint)
Adds the specified code point to the end of this StringBuffer.
|
StringBuffer |
StringBuffer.delete(int start,
int end)
Deletes a range of characters starting from offset
start to offset
end - 1 . |
StringBuffer |
StringBuffer.deleteCharAt(int location)
Deletes a single character
|
StringBuffer |
StringBuffer.insert(int index,
boolean value)
Inserts the string representation of the specified boolean at the specified
offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
char ch)
Inserts the character at the specified offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
char[] chars)
Inserts the character array at the specified offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
char[] chars,
int start,
int length)
Inserts the specified sequence of characters at the
specified offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
CharSequence sequence)
Inserts the CharSequence at the specified offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
CharSequence sequence,
int start,
int end)
Inserts the CharSequence at the specified offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
double value)
Inserts the string representation of the specified double at the specified
offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
float value)
Inserts the string representation of the specified float at the specified
offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
int value)
Inserts the string representation of the specified integer at the specified
offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
long value)
Inserts the string representation of the specified long at the specified
offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
Object value)
Inserts the string representation of the specified object at the specified
offset in this StringBuffer.
|
StringBuffer |
StringBuffer.insert(int index,
String string)
Inserts the string at the specified offset in this StringBuffer.
|
StringBuffer |
StringBuffer.replace(int start,
int end,
String string)
Replace a range of characters with the characters in the specified String.
|
StringBuffer |
StringBuffer.reverse()
Reverses the order of characters in this StringBuffer.
|
Modifier and Type | Method and Description |
---|---|
StringBuffer |
StringBuffer.append(StringBuffer buffer)
Adds the specified StringBuffer to the end of this StringBuffer.
|
StringBuilder |
StringBuilder.append(StringBuffer buffer)
Adds the specified StringBuffer to the end of this StringBuilder.
|
boolean |
String.contentEquals(StringBuffer buffer)
Answers whether the characters in the StringBuffer buffer are the same as those in this String.
|
Constructor and Description |
---|
String(StringBuffer buffer)
Creates a string from the contents of a StringBuffer.
|
Modifier and Type | Method and Description |
---|---|
StringBuffer |
SimpleDateFormat.format(Date date,
StringBuffer toAppendTo,
FieldPosition pos)
Formats the given
Date into a date/time string and appends
the result to the given StringBuffer . |
abstract StringBuffer |
DateFormat.format(Date date,
StringBuffer toAppendTo,
FieldPosition fieldPosition)
Formats a Date into a date/time string.
|
StringBuffer |
DecimalFormat.format(double number,
StringBuffer result,
FieldPosition fieldPosition)
Formats a double to produce a string.
|
StringBuffer |
ChoiceFormat.format(double number,
StringBuffer toAppendTo,
FieldPosition status)
Returns pattern with formatted double.
|
abstract StringBuffer |
NumberFormat.format(double number,
StringBuffer toAppendTo,
FieldPosition pos)
Specialization of format.
|
StringBuffer |
DecimalFormat.format(long number,
StringBuffer result,
FieldPosition fieldPosition)
Format a long to produce a string.
|
StringBuffer |
ChoiceFormat.format(long number,
StringBuffer toAppendTo,
FieldPosition status)
Specialization of format.
|
abstract StringBuffer |
NumberFormat.format(long number,
StringBuffer toAppendTo,
FieldPosition pos)
Specialization of format.
|
StringBuffer |
MessageFormat.format(Object[] arguments,
StringBuffer result,
FieldPosition pos)
Formats an array of objects and appends the
MessageFormat 's
pattern, with format elements replaced by the formatted objects, to the
provided StringBuffer . |
StringBuffer |
DecimalFormat.format(Object number,
StringBuffer toAppendTo,
FieldPosition pos)
Formats a number and appends the resulting text to the given string
buffer.
|
StringBuffer |
NumberFormat.format(Object number,
StringBuffer toAppendTo,
FieldPosition pos)
Formats a number and appends the resulting text to the given string
buffer.
|
StringBuffer |
DateFormat.format(Object obj,
StringBuffer toAppendTo,
FieldPosition fieldPosition)
Overrides Format.
|
abstract StringBuffer |
Format.format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
Formats an object and appends the resulting text to a given string
buffer.
|
StringBuffer |
MessageFormat.format(Object arguments,
StringBuffer result,
FieldPosition pos)
Formats an array of objects and appends the
MessageFormat 's
pattern, with format elements replaced by the formatted objects, to the
provided StringBuffer . |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
SimpleDateFormat.format(Date date,
StringBuffer toAppendTo,
FieldPosition pos)
Formats the given
Date into a date/time string and appends
the result to the given StringBuffer . |
abstract StringBuffer |
DateFormat.format(Date date,
StringBuffer toAppendTo,
FieldPosition fieldPosition)
Formats a Date into a date/time string.
|
StringBuffer |
DecimalFormat.format(double number,
StringBuffer result,
FieldPosition fieldPosition)
Formats a double to produce a string.
|
StringBuffer |
ChoiceFormat.format(double number,
StringBuffer toAppendTo,
FieldPosition status)
Returns pattern with formatted double.
|
abstract StringBuffer |
NumberFormat.format(double number,
StringBuffer toAppendTo,
FieldPosition pos)
Specialization of format.
|
StringBuffer |
DecimalFormat.format(long number,
StringBuffer result,
FieldPosition fieldPosition)
Format a long to produce a string.
|
StringBuffer |
ChoiceFormat.format(long number,
StringBuffer toAppendTo,
FieldPosition status)
Specialization of format.
|
abstract StringBuffer |
NumberFormat.format(long number,
StringBuffer toAppendTo,
FieldPosition pos)
Specialization of format.
|
StringBuffer |
MessageFormat.format(Object[] arguments,
StringBuffer result,
FieldPosition pos)
Formats an array of objects and appends the
MessageFormat 's
pattern, with format elements replaced by the formatted objects, to the
provided StringBuffer . |
StringBuffer |
DecimalFormat.format(Object number,
StringBuffer toAppendTo,
FieldPosition pos)
Formats a number and appends the resulting text to the given string
buffer.
|
StringBuffer |
NumberFormat.format(Object number,
StringBuffer toAppendTo,
FieldPosition pos)
Formats a number and appends the resulting text to the given string
buffer.
|
StringBuffer |
DateFormat.format(Object obj,
StringBuffer toAppendTo,
FieldPosition fieldPosition)
Overrides Format.
|
abstract StringBuffer |
Format.format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
Formats an object and appends the resulting text to a given string
buffer.
|
StringBuffer |
MessageFormat.format(Object arguments,
StringBuffer result,
FieldPosition pos)
Formats an array of objects and appends the
MessageFormat 's
pattern, with format elements replaced by the formatted objects, to the
provided StringBuffer . |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
Matcher.appendTail(StringBuffer sb)
Implements a terminal append-and-replace step.
|
Modifier and Type | Method and Description |
---|---|
Matcher |
Matcher.appendReplacement(StringBuffer sb,
String replacement)
Implements a non-terminal append-and-replace step.
|
StringBuffer |
Matcher.appendTail(StringBuffer sb)
Implements a terminal append-and-replace step.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
Parser.parseMarkupDeclarations(StringBuffer strBuff)
Parse markup declarations.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.