📄 stringbuffer.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, char[], int, int)">insert</A></B>(int index, char[] str, int offset, int len)</CODE><BR> Inserts the string representation of a subarray of the <code>str</code> array argument into this string buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, java.lang.Object)">insert</A></B>(int offset, <A HREF="../../../java/lang/Object.html">Object</A> obj)</CODE><BR> Inserts the string representation of the <code>Object</code> argument into this string buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, java.lang.String)">insert</A></B>(int offset, <A HREF="../../../java/lang/String.html">String</A> str)</CODE><BR> Inserts the string into this string buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, char[])">insert</A></B>(int offset, char[] str)</CODE><BR> Inserts the string representation of the <code>char</code> array argument into this string buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, boolean)">insert</A></B>(int offset, boolean b)</CODE><BR> Inserts the string representation of the <code>boolean</code> argument into this string buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, char)">insert</A></B>(int offset, char c)</CODE><BR> Inserts the string representation of the <code>char</code> argument into this string buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, int)">insert</A></B>(int offset, int i)</CODE><BR> Inserts the string representation of the second <code>int</code> argument into this string buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, long)">insert</A></B>(int offset, long l)</CODE><BR> Inserts the string representation of the <code>long</code> argument into this string buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, float)">insert</A></B>(int offset, float f)</CODE><BR> Inserts the string representation of the <code>float</code> argument into this string buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, double)">insert</A></B>(int offset, double d)</CODE><BR> Inserts the string representation of the <code>double</code> argument into this string buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#reverse()">reverse</A></B>()</CODE><BR> The character sequence contained in this string buffer is replaced by the reverse of the sequence.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/lang/package-summary.html">java.lang</A> with parameters of type <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/lang/String.html#String(java.lang.StringBuffer)">String</A></B>(<A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> buffer)</CODE><BR> Allocates a new string that contains the sequence of characters currently contained in the string buffer argument.</TD></TR></TABLE> <P><A NAME="java.text"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> in <A HREF="../../../java/text/package-summary.html">java.text</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/text/package-summary.html">java.text</A> that return <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>Format.</B><B><A HREF="../../../java/text/Format.html#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> obj, <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> toAppendTo, <A HREF="../../../java/text/FieldPosition.html">FieldPosition</A> pos)</CODE><BR> Formats an object to produce a string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>NumberFormat.</B><B><A HREF="../../../java/text/NumberFormat.html#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> number, <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> toAppendTo, <A HREF="../../../java/text/FieldPosition.html">FieldPosition</A> pos)</CODE><BR> Formats an object to produce a string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>NumberFormat.</B><B><A HREF="../../../java/text/NumberFormat.html#format(double, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(double number, <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> toAppendTo, <A HREF="../../../java/text/FieldPosition.html">FieldPosition</A> pos)</CODE><BR> Specialization of format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>NumberFormat.</B><B><A HREF="../../../java/text/NumberFormat.html#format(long, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(long number, <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> toAppendTo, <A HREF="../../../java/text/FieldPosition.html">FieldPosition</A> pos)</CODE><BR> Specialization of format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>ChoiceFormat.</B><B><A HREF="../../../java/text/ChoiceFormat.html#format(long, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(long number, <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> toAppendTo, <A HREF="../../../java/text/FieldPosition.html">FieldPosition</A> status)</CODE><BR> Specialization of format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>ChoiceFormat.</B><B><A HREF="../../../java/text/ChoiceFormat.html#format(double, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(double number, <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> toAppendTo, <A HREF="../../../java/text/FieldPosition.html">FieldPosition</A> status)</CODE><BR> Returns pattern with formatted double.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>DateFormat.</B><B><A HREF="../../../java/text/DateFormat.html#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> obj, <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> toAppendTo, <A HREF="../../../java/text/FieldPosition.html">FieldPosition</A> fieldPosition)</CODE><BR> Overrides Format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>DateFormat.</B><B><A HREF="../../../java/text/DateFormat.html#format(java.util.Date, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(<A HREF="../../../java/util/Date.html">Date</A> date, <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> toAppendTo, <A HREF="../../../java/text/FieldPosition.html">FieldPosition</A> fieldPosition)</CODE><BR> Formats a Date into a date/time string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>SimpleDateFormat.</B><B><A HREF="../../../java/text/SimpleDateFormat.html#format(java.util.Date, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(<A HREF="../../../java/util/Date.html">Date</A> date, <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> toAppendTo, <A HREF="../../../java/text/FieldPosition.html">FieldPosition</A> pos)</CODE><BR> Overrides DateFormat </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD><TD><CODE><B>DecimalFormat.</B><B><A HREF="../../../java/text/DecimalFormat.html#format(double, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(double number, <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A> result, <A HREF="../../../java/text/FieldPosition.html">FieldPosition</A> fieldPosition)</CODE><BR> Formats a double to produce a string.</TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -