Uses of Class
java.lang.StringBuffer
Packages that useStringBuffer 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.Uses ofStringBuffer injava.io
Methods injava.io that returnStringBuffer Modifier and Type Method Description StringBufferStringWriter. getBuffer()Return the string buffer itself.Uses ofStringBuffer injava.lang
Methods injava.lang that returnStringBuffer Modifier and Type Method Description StringBufferStringBuffer. append(boolean b)StringBufferStringBuffer. append(char c)StringBufferStringBuffer. append(char[] str)StringBufferStringBuffer. append(char[] str, int offset, int len)StringBufferStringBuffer. append(double d)StringBufferStringBuffer. append(float f)StringBufferStringBuffer. append(int i)StringBufferStringBuffer. append(long lng)StringBufferStringBuffer. append(CharSequence s)Appends the specifiedCharSequenceto this sequence.StringBufferStringBuffer. append(CharSequence s, int start, int end)StringBufferStringBuffer. append(Object obj)StringBufferStringBuffer. append(String str)StringBufferStringBuffer. append(StringBuffer sb)Appends the specifiedStringBufferto this sequence.StringBufferStringBuffer. appendCodePoint(int codePoint)StringBufferStringBuffer. delete(int start, int end)StringBufferStringBuffer. deleteCharAt(int index)StringBufferStringBuffer. insert(int offset, boolean b)StringBufferStringBuffer. insert(int offset, char c)StringBufferStringBuffer. insert(int offset, char[] str)StringBufferStringBuffer. insert(int index, char[] str, int offset, int len)StringBufferStringBuffer. insert(int offset, double d)StringBufferStringBuffer. insert(int offset, float f)StringBufferStringBuffer. insert(int offset, int i)StringBufferStringBuffer. insert(int offset, long l)StringBufferStringBuffer. insert(int dstOffset,CharSequence s)StringBufferStringBuffer. insert(int dstOffset,CharSequence s, int start, int end)StringBufferStringBuffer. insert(int offset,Object obj)StringBufferStringBuffer. insert(int offset,String str)StringBufferStringBuffer. replace(int start, int end,String str)StringBufferStringBuffer. reverse()Methods injava.lang with parameters of typeStringBuffer Modifier and Type Method Description StringBufferStringBuffer. append(StringBuffer sb)Appends the specifiedStringBufferto this sequence.StringBuilderStringBuilder. append(StringBuffer sb)Appends the specifiedStringBufferto this sequence.intStringBuffer. compareTo(StringBuffer another)Compares twoStringBufferinstances lexicographically.booleanString. contentEquals(StringBuffer sb)Compares this string to the specifiedStringBuffer.Constructors injava.lang with parameters of typeStringBuffer Constructor Description String(StringBuffer buffer)Allocates a new string that contains the sequence of characters currently contained in the string buffer argument.Uses ofStringBuffer injava.text
Methods injava.text that returnStringBuffer Modifier and Type Method Description StringBufferChoiceFormat. format(double number,StringBuffer toAppendTo,FieldPosition status)Returns pattern with formatted double.StringBufferChoiceFormat. format(long number,StringBuffer toAppendTo,FieldPosition status)Specialization of format.StringBufferDateFormat. format(Object obj,StringBuffer toAppendTo,FieldPosition fieldPosition)Formats the givenObjectinto a date-time string.abstractStringBufferDateFormat. format(Date date,StringBuffer toAppendTo,FieldPosition fieldPosition)Formats aDateinto a date-time string.StringBufferDecimalFormat. format(double number,StringBuffer result,FieldPosition fieldPosition)Formats a double to produce a string.StringBufferDecimalFormat. format(long number,StringBuffer result,FieldPosition fieldPosition)Format a long to produce a string.StringBufferDecimalFormat. format(Object number,StringBuffer toAppendTo,FieldPosition pos)Formats a number and appends the resulting text to the given string buffer.abstractStringBufferFormat. format(Object obj,StringBuffer toAppendTo,FieldPosition pos)Formats an object and appends the resulting text to a given string buffer.StringBufferMessageFormat. format(Object[] arguments,StringBuffer result,FieldPosition pos)Formats an array of objects and appends theMessageFormat's pattern, with format elements replaced by the formatted objects, to the providedStringBuffer.StringBufferMessageFormat. format(Object arguments,StringBuffer result,FieldPosition pos)Formats an array of objects and appends theMessageFormat's pattern, with format elements replaced by the formatted objects, to the providedStringBuffer.abstractStringBufferNumberFormat. format(double number,StringBuffer toAppendTo,FieldPosition pos)Specialization of format.abstractStringBufferNumberFormat. format(long number,StringBuffer toAppendTo,FieldPosition pos)Specialization of format.StringBufferNumberFormat. format(Object number,StringBuffer toAppendTo,FieldPosition pos)Formats a number and appends the resulting text to the given string buffer.StringBufferSimpleDateFormat. format(Date date,StringBuffer toAppendTo,FieldPosition pos)Formats the givenDateinto a date/time string and appends the result to the givenStringBuffer.Methods injava.text with parameters of typeStringBuffer Modifier and Type Method Description StringBufferChoiceFormat. format(double number,StringBuffer toAppendTo,FieldPosition status)Returns pattern with formatted double.StringBufferChoiceFormat. format(long number,StringBuffer toAppendTo,FieldPosition status)Specialization of format.StringBufferDateFormat. format(Object obj,StringBuffer toAppendTo,FieldPosition fieldPosition)Formats the givenObjectinto a date-time string.abstractStringBufferDateFormat. format(Date date,StringBuffer toAppendTo,FieldPosition fieldPosition)Formats aDateinto a date-time string.StringBufferDecimalFormat. format(double number,StringBuffer result,FieldPosition fieldPosition)Formats a double to produce a string.StringBufferDecimalFormat. format(long number,StringBuffer result,FieldPosition fieldPosition)Format a long to produce a string.StringBufferDecimalFormat. format(Object number,StringBuffer toAppendTo,FieldPosition pos)Formats a number and appends the resulting text to the given string buffer.abstractStringBufferFormat. format(Object obj,StringBuffer toAppendTo,FieldPosition pos)Formats an object and appends the resulting text to a given string buffer.StringBufferMessageFormat. format(Object[] arguments,StringBuffer result,FieldPosition pos)Formats an array of objects and appends theMessageFormat's pattern, with format elements replaced by the formatted objects, to the providedStringBuffer.StringBufferMessageFormat. format(Object arguments,StringBuffer result,FieldPosition pos)Formats an array of objects and appends theMessageFormat's pattern, with format elements replaced by the formatted objects, to the providedStringBuffer.abstractStringBufferNumberFormat. format(double number,StringBuffer toAppendTo,FieldPosition pos)Specialization of format.abstractStringBufferNumberFormat. format(long number,StringBuffer toAppendTo,FieldPosition pos)Specialization of format.StringBufferNumberFormat. format(Object number,StringBuffer toAppendTo,FieldPosition pos)Formats a number and appends the resulting text to the given string buffer.StringBufferSimpleDateFormat. format(Date date,StringBuffer toAppendTo,FieldPosition pos)Formats the givenDateinto a date/time string and appends the result to the givenStringBuffer.Uses ofStringBuffer injava.util.regex
Methods injava.util.regex that returnStringBuffer Modifier and Type Method Description StringBufferMatcher. appendTail(StringBuffer sb)Implements a terminal append-and-replace step.Methods injava.util.regex with parameters of typeStringBuffer Modifier and Type Method Description MatcherMatcher. appendReplacement(StringBuffer sb,String replacement)Implements a non-terminal append-and-replace step.StringBufferMatcher. appendTail(StringBuffer sb)Implements a terminal append-and-replace step.Uses ofStringBuffer injavax.swing.text.html.parser
Methods injavax.swing.text.html.parser with parameters of typeStringBuffer Modifier and Type Method Description protected booleanParser. parseMarkupDeclarations(StringBuffer strBuff)Parse markup declarations.