15
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
2 <!--NewPage-->
|
|
3 <HTML>
|
|
4 <HEAD>
|
|
5 <!-- Generated by javadoc (build 1.6.0_17) on Sat Mar 27 22:46:17 EDT 2010 -->
|
|
6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
7 <TITLE>
|
|
8 CompositeFormat (Commons Math 2.1 API)
|
|
9 </TITLE>
|
|
10
|
|
11 <META NAME="date" CONTENT="2010-03-27">
|
|
12
|
|
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
|
|
14
|
|
15 <SCRIPT type="text/javascript">
|
|
16 function windowTitle()
|
|
17 {
|
|
18 if (location.href.indexOf('is-external=true') == -1) {
|
|
19 parent.document.title="CompositeFormat (Commons Math 2.1 API)";
|
|
20 }
|
|
21 }
|
|
22 </SCRIPT>
|
|
23 <NOSCRIPT>
|
|
24 </NOSCRIPT>
|
|
25
|
|
26 </HEAD>
|
|
27
|
|
28 <BODY BGCOLOR="white" onload="windowTitle();">
|
|
29 <HR>
|
|
30
|
|
31
|
|
32 <!-- ========= START OF TOP NAVBAR ======= -->
|
|
33 <A NAME="navbar_top"><!-- --></A>
|
|
34 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
35 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
36 <TR>
|
|
37 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
38 <A NAME="navbar_top_firstrow"><!-- --></A>
|
|
39 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
40 <TR ALIGN="center" VALIGN="top">
|
|
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CompositeFormat.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
49 </TR>
|
|
50 </TABLE>
|
|
51 </TD>
|
|
52 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
53 </EM>
|
|
54 </TD>
|
|
55 </TR>
|
|
56
|
|
57 <TR>
|
|
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
59 <A HREF="../../../../../org/apache/commons/math/util/BigRealField.html" title="class in org.apache.commons.math.util"><B>PREV CLASS</B></A>
|
|
60 <A HREF="../../../../../org/apache/commons/math/util/ContinuedFraction.html" title="class in org.apache.commons.math.util"><B>NEXT CLASS</B></A></FONT></TD>
|
|
61 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
62 <A HREF="../../../../../index.html?org/apache/commons/math/util/CompositeFormat.html" target="_top"><B>FRAMES</B></A>
|
|
63 <A HREF="CompositeFormat.html" target="_top"><B>NO FRAMES</B></A>
|
|
64 <SCRIPT type="text/javascript">
|
|
65 <!--
|
|
66 if(window==top) {
|
|
67 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
68 }
|
|
69 //-->
|
|
70 </SCRIPT>
|
|
71 <NOSCRIPT>
|
|
72 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
73 </NOSCRIPT>
|
|
74
|
|
75
|
|
76 </FONT></TD>
|
|
77 </TR>
|
|
78 <TR>
|
|
79 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
80 SUMMARY: <A HREF="#nested_classes_inherited_from_class_java.text.Format">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
81 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
82 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
83 </TR>
|
|
84 </TABLE>
|
|
85 <A NAME="skip-navbar_top"></A>
|
|
86 <!-- ========= END OF TOP NAVBAR ========= -->
|
|
87
|
|
88 <HR>
|
|
89 <!-- ======== START OF CLASS DATA ======== -->
|
|
90 <H2>
|
|
91 <FONT SIZE="-1">
|
|
92 org.apache.commons.math.util</FONT>
|
|
93 <BR>
|
|
94 Class CompositeFormat</H2>
|
|
95 <PRE>
|
|
96 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
|
|
97 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.html?is-external=true" title="class or interface in java.text">java.text.Format</A>
|
|
98 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.math.util.CompositeFormat</B>
|
|
99 </PRE>
|
|
100 <DL>
|
|
101 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A></DD>
|
|
102 </DL>
|
|
103 <DL>
|
|
104 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/apache/commons/math/complex/ComplexFormat.html" title="class in org.apache.commons.math.complex">ComplexFormat</A>, <A HREF="../../../../../org/apache/commons/math/linear/RealVectorFormat.html" title="class in org.apache.commons.math.linear">RealVectorFormat</A>, <A HREF="../../../../../org/apache/commons/math/geometry/Vector3DFormat.html" title="class in org.apache.commons.math.geometry">Vector3DFormat</A></DD>
|
|
105 </DL>
|
|
106 <HR>
|
|
107 <DL>
|
|
108 <DT><PRE>public abstract class <A HREF="../../../../../src-html/org/apache/commons/math/util/CompositeFormat.html#line.30"><B>CompositeFormat</B></A><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.html?is-external=true" title="class or interface in java.text">Format</A></DL>
|
|
109 </PRE>
|
|
110
|
|
111 <P>
|
|
112 Base class for formatters of composite objects (complex numbers, vectors ...).
|
|
113 <P>
|
|
114
|
|
115 <P>
|
|
116 <DL>
|
|
117 <DT><B>Version:</B></DT>
|
|
118 <DD>$Revision: 811783 $ $Date: 2009-09-06 04:56:58 -0400 (Sun, 06 Sep 2009) $</DD>
|
|
119 <DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#org.apache.commons.math.util.CompositeFormat">Serialized Form</A></DL>
|
|
120 <HR>
|
|
121
|
|
122 <P>
|
|
123 <!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
124
|
|
125 <A NAME="nested_class_summary"><!-- --></A>
|
|
126 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
127 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
128 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
129 <B>Nested Class Summary</B></FONT></TH>
|
|
130 </TR>
|
|
131 </TABLE>
|
|
132 <A NAME="nested_classes_inherited_from_class_java.text.Format"><!-- --></A>
|
|
133 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
134 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
135 <TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.text.<A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.html?is-external=true" title="class or interface in java.text">Format</A></B></TH>
|
|
136 </TR>
|
|
137 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
138 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.Field.html?is-external=true" title="class or interface in java.text">Format.Field</A></CODE></TD>
|
|
139 </TR>
|
|
140 </TABLE>
|
|
141
|
|
142
|
|
143 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
144
|
|
145 <A NAME="constructor_summary"><!-- --></A>
|
|
146 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
147 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
148 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
149 <B>Constructor Summary</B></FONT></TH>
|
|
150 </TR>
|
|
151 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
152 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/util/CompositeFormat.html#CompositeFormat()">CompositeFormat</A></B>()</CODE>
|
|
153
|
|
154 <BR>
|
|
155 </TD>
|
|
156 </TR>
|
|
157 </TABLE>
|
|
158
|
|
159 <!-- ========== METHOD SUMMARY =========== -->
|
|
160
|
|
161 <A NAME="method_summary"><!-- --></A>
|
|
162 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
163 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
164 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
165 <B>Method Summary</B></FONT></TH>
|
|
166 </TR>
|
|
167 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
168 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
169 <CODE>protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A></CODE></FONT></TD>
|
|
170 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/util/CompositeFormat.html#formatDouble(double, java.text.NumberFormat, java.lang.StringBuffer, java.text.FieldPosition)">formatDouble</A></B>(double value,
|
|
171 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/NumberFormat.html?is-external=true" title="class or interface in java.text">NumberFormat</A> format,
|
|
172 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A> toAppendTo,
|
|
173 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/FieldPosition.html?is-external=true" title="class or interface in java.text">FieldPosition</A> pos)</CODE>
|
|
174
|
|
175 <BR>
|
|
176 Formats a double value to produce a string.</TD>
|
|
177 </TR>
|
|
178 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
179 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
180 <CODE>protected static <A HREF="http://java.sun.com/javase/6/docs/api/java/text/NumberFormat.html?is-external=true" title="class or interface in java.text">NumberFormat</A></CODE></FONT></TD>
|
|
181 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/util/CompositeFormat.html#getDefaultNumberFormat()">getDefaultNumberFormat</A></B>()</CODE>
|
|
182
|
|
183 <BR>
|
|
184 Create a default number format.</TD>
|
|
185 </TR>
|
|
186 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
187 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
188 <CODE>protected static <A HREF="http://java.sun.com/javase/6/docs/api/java/text/NumberFormat.html?is-external=true" title="class or interface in java.text">NumberFormat</A></CODE></FONT></TD>
|
|
189 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/util/CompositeFormat.html#getDefaultNumberFormat(java.util.Locale)">getDefaultNumberFormat</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</A> locale)</CODE>
|
|
190
|
|
191 <BR>
|
|
192 Create a default number format.</TD>
|
|
193 </TR>
|
|
194 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
195 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
196 <CODE>protected void</CODE></FONT></TD>
|
|
197 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/util/CompositeFormat.html#parseAndIgnoreWhitespace(java.lang.String, java.text.ParsePosition)">parseAndIgnoreWhitespace</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source,
|
|
198 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/ParsePosition.html?is-external=true" title="class or interface in java.text">ParsePosition</A> pos)</CODE>
|
|
199
|
|
200 <BR>
|
|
201 Parses <code>source</code> until a non-whitespace character is found.</TD>
|
|
202 </TR>
|
|
203 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
205 <CODE>protected boolean</CODE></FONT></TD>
|
|
206 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/util/CompositeFormat.html#parseFixedstring(java.lang.String, java.lang.String, java.text.ParsePosition)">parseFixedstring</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source,
|
|
207 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> expected,
|
|
208 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/ParsePosition.html?is-external=true" title="class or interface in java.text">ParsePosition</A> pos)</CODE>
|
|
209
|
|
210 <BR>
|
|
211 Parse <code>source</code> for an expected fixed string.</TD>
|
|
212 </TR>
|
|
213 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
214 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
215 <CODE>protected char</CODE></FONT></TD>
|
|
216 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/util/CompositeFormat.html#parseNextCharacter(java.lang.String, java.text.ParsePosition)">parseNextCharacter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source,
|
|
217 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/ParsePosition.html?is-external=true" title="class or interface in java.text">ParsePosition</A> pos)</CODE>
|
|
218
|
|
219 <BR>
|
|
220 Parses <code>source</code> until a non-whitespace character is found.</TD>
|
|
221 </TR>
|
|
222 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
223 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
224 <CODE>protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A></CODE></FONT></TD>
|
|
225 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/util/CompositeFormat.html#parseNumber(java.lang.String, java.text.NumberFormat, java.text.ParsePosition)">parseNumber</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source,
|
|
226 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/NumberFormat.html?is-external=true" title="class or interface in java.text">NumberFormat</A> format,
|
|
227 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/ParsePosition.html?is-external=true" title="class or interface in java.text">ParsePosition</A> pos)</CODE>
|
|
228
|
|
229 <BR>
|
|
230 Parses <code>source</code> for a number.</TD>
|
|
231 </TR>
|
|
232 </TABLE>
|
|
233 <A NAME="methods_inherited_from_class_java.text.Format"><!-- --></A>
|
|
234 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
235 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
236 <TH ALIGN="left"><B>Methods inherited from class java.text.<A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.html?is-external=true" title="class or interface in java.text">Format</A></B></TH>
|
|
237 </TR>
|
|
238 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
239 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.html?is-external=true#clone()" title="class or interface in java.text">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.html?is-external=true#format(java.lang.Object)" title="class or interface in java.text">format</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.html?is-external=true#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)" title="class or interface in java.text">format</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.html?is-external=true#formatToCharacterIterator(java.lang.Object)" title="class or interface in java.text">formatToCharacterIterator</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.html?is-external=true#parseObject(java.lang.String)" title="class or interface in java.text">parseObject</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/text/Format.html?is-external=true#parseObject(java.lang.String, java.text.ParsePosition)" title="class or interface in java.text">parseObject</A></CODE></TD>
|
|
240 </TR>
|
|
241 </TABLE>
|
|
242 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
243 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
244 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
245 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
|
|
246 </TR>
|
|
247 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
248 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
|
|
249 </TR>
|
|
250 </TABLE>
|
|
251
|
|
252 <P>
|
|
253
|
|
254 <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
255
|
|
256 <A NAME="constructor_detail"><!-- --></A>
|
|
257 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
258 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
259 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
260 <B>Constructor Detail</B></FONT></TH>
|
|
261 </TR>
|
|
262 </TABLE>
|
|
263
|
|
264 <A NAME="CompositeFormat()"><!-- --></A><H3>
|
|
265 CompositeFormat</H3>
|
|
266 <PRE>
|
|
267 public <A HREF="../../../../../src-html/org/apache/commons/math/util/CompositeFormat.html#line.30"><B>CompositeFormat</B></A>()</PRE>
|
|
268 <DL>
|
|
269 </DL>
|
|
270
|
|
271 <!-- ============ METHOD DETAIL ========== -->
|
|
272
|
|
273 <A NAME="method_detail"><!-- --></A>
|
|
274 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
275 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
276 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
277 <B>Method Detail</B></FONT></TH>
|
|
278 </TR>
|
|
279 </TABLE>
|
|
280
|
|
281 <A NAME="getDefaultNumberFormat()"><!-- --></A><H3>
|
|
282 getDefaultNumberFormat</H3>
|
|
283 <PRE>
|
|
284 protected static <A HREF="http://java.sun.com/javase/6/docs/api/java/text/NumberFormat.html?is-external=true" title="class or interface in java.text">NumberFormat</A> <A HREF="../../../../../src-html/org/apache/commons/math/util/CompositeFormat.html#line.41"><B>getDefaultNumberFormat</B></A>()</PRE>
|
|
285 <DL>
|
|
286 <DD>Create a default number format. The default number format is based on
|
|
287 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/NumberFormat.html?is-external=true#getInstance()" title="class or interface in java.text"><CODE>NumberFormat.getInstance()</CODE></A> with the only customizing that the
|
|
288 maximum number of fraction digits is set to 2.
|
|
289 <P>
|
|
290 <DD><DL>
|
|
291
|
|
292 <DT><B>Returns:</B><DD>the default number format.</DL>
|
|
293 </DD>
|
|
294 </DL>
|
|
295 <HR>
|
|
296
|
|
297 <A NAME="getDefaultNumberFormat(java.util.Locale)"><!-- --></A><H3>
|
|
298 getDefaultNumberFormat</H3>
|
|
299 <PRE>
|
|
300 protected static <A HREF="http://java.sun.com/javase/6/docs/api/java/text/NumberFormat.html?is-external=true" title="class or interface in java.text">NumberFormat</A> <A HREF="../../../../../src-html/org/apache/commons/math/util/CompositeFormat.html#line.52"><B>getDefaultNumberFormat</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</A> locale)</PRE>
|
|
301 <DL>
|
|
302 <DD>Create a default number format. The default number format is based on
|
|
303 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/NumberFormat.html?is-external=true#getInstance(java.util.Locale)" title="class or interface in java.text"><CODE>NumberFormat.getInstance(java.util.Locale)</CODE></A> with the only
|
|
304 customizing that the maximum number of fraction digits is set to 2.
|
|
305 <P>
|
|
306 <DD><DL>
|
|
307 <DT><B>Parameters:</B><DD><CODE>locale</CODE> - the specific locale used by the format.
|
|
308 <DT><B>Returns:</B><DD>the default number format specific to the given locale.</DL>
|
|
309 </DD>
|
|
310 </DL>
|
|
311 <HR>
|
|
312
|
|
313 <A NAME="parseAndIgnoreWhitespace(java.lang.String, java.text.ParsePosition)"><!-- --></A><H3>
|
|
314 parseAndIgnoreWhitespace</H3>
|
|
315 <PRE>
|
|
316 protected void <A HREF="../../../../../src-html/org/apache/commons/math/util/CompositeFormat.html#line.65"><B>parseAndIgnoreWhitespace</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source,
|
|
317 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/ParsePosition.html?is-external=true" title="class or interface in java.text">ParsePosition</A> pos)</PRE>
|
|
318 <DL>
|
|
319 <DD>Parses <code>source</code> until a non-whitespace character is found.
|
|
320 <P>
|
|
321 <DD><DL>
|
|
322 <DT><B>Parameters:</B><DD><CODE>source</CODE> - the string to parse<DD><CODE>pos</CODE> - input/ouput parsing parameter. On output, <code>pos</code>
|
|
323 holds the index of the next non-whitespace character.</DL>
|
|
324 </DD>
|
|
325 </DL>
|
|
326 <HR>
|
|
327
|
|
328 <A NAME="parseNextCharacter(java.lang.String, java.text.ParsePosition)"><!-- --></A><H3>
|
|
329 parseNextCharacter</H3>
|
|
330 <PRE>
|
|
331 protected char <A HREF="../../../../../src-html/org/apache/commons/math/util/CompositeFormat.html#line.78"><B>parseNextCharacter</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source,
|
|
332 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/ParsePosition.html?is-external=true" title="class or interface in java.text">ParsePosition</A> pos)</PRE>
|
|
333 <DL>
|
|
334 <DD>Parses <code>source</code> until a non-whitespace character is found.
|
|
335 <P>
|
|
336 <DD><DL>
|
|
337 <DT><B>Parameters:</B><DD><CODE>source</CODE> - the string to parse<DD><CODE>pos</CODE> - input/ouput parsing parameter.
|
|
338 <DT><B>Returns:</B><DD>the first non-whitespace character.</DL>
|
|
339 </DD>
|
|
340 </DL>
|
|
341 <HR>
|
|
342
|
|
343 <A NAME="parseNumber(java.lang.String, java.text.NumberFormat, java.text.ParsePosition)"><!-- --></A><H3>
|
|
344 parseNumber</H3>
|
|
345 <PRE>
|
|
346 protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A> <A HREF="../../../../../src-html/org/apache/commons/math/util/CompositeFormat.html#line.140"><B>parseNumber</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source,
|
|
347 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/NumberFormat.html?is-external=true" title="class or interface in java.text">NumberFormat</A> format,
|
|
348 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/ParsePosition.html?is-external=true" title="class or interface in java.text">ParsePosition</A> pos)</PRE>
|
|
349 <DL>
|
|
350 <DD>Parses <code>source</code> for a number. This method can parse normal,
|
|
351 numeric values as well as special values. These special values include
|
|
352 Double.NaN, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY.
|
|
353 <P>
|
|
354 <DD><DL>
|
|
355 <DT><B>Parameters:</B><DD><CODE>source</CODE> - the string to parse<DD><CODE>format</CODE> - the number format used to parse normal, numeric values.<DD><CODE>pos</CODE> - input/ouput parsing parameter.
|
|
356 <DT><B>Returns:</B><DD>the parsed number.</DL>
|
|
357 </DD>
|
|
358 </DL>
|
|
359 <HR>
|
|
360
|
|
361 <A NAME="parseFixedstring(java.lang.String, java.lang.String, java.text.ParsePosition)"><!-- --></A><H3>
|
|
362 parseFixedstring</H3>
|
|
363 <PRE>
|
|
364 protected boolean <A HREF="../../../../../src-html/org/apache/commons/math/util/CompositeFormat.html#line.170"><B>parseFixedstring</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> source,
|
|
365 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> expected,
|
|
366 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/ParsePosition.html?is-external=true" title="class or interface in java.text">ParsePosition</A> pos)</PRE>
|
|
367 <DL>
|
|
368 <DD>Parse <code>source</code> for an expected fixed string.
|
|
369 <P>
|
|
370 <DD><DL>
|
|
371 <DT><B>Parameters:</B><DD><CODE>source</CODE> - the string to parse<DD><CODE>expected</CODE> - expected string<DD><CODE>pos</CODE> - input/ouput parsing parameter.
|
|
372 <DT><B>Returns:</B><DD>true if the expected string was there</DL>
|
|
373 </DD>
|
|
374 </DL>
|
|
375 <HR>
|
|
376
|
|
377 <A NAME="formatDouble(double, java.text.NumberFormat, java.lang.StringBuffer, java.text.FieldPosition)"><!-- --></A><H3>
|
|
378 formatDouble</H3>
|
|
379 <PRE>
|
|
380 protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A> <A HREF="../../../../../src-html/org/apache/commons/math/util/CompositeFormat.html#line.207"><B>formatDouble</B></A>(double value,
|
|
381 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/NumberFormat.html?is-external=true" title="class or interface in java.text">NumberFormat</A> format,
|
|
382 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A> toAppendTo,
|
|
383 <A HREF="http://java.sun.com/javase/6/docs/api/java/text/FieldPosition.html?is-external=true" title="class or interface in java.text">FieldPosition</A> pos)</PRE>
|
|
384 <DL>
|
|
385 <DD>Formats a double value to produce a string. In general, the value is
|
|
386 formatted using the formatting rules of <code>format</code>. There are
|
|
387 three exceptions to this:
|
|
388 <ol>
|
|
389 <li>NaN is formatted as '(NaN)'</li>
|
|
390 <li>Positive infinity is formatted as '(Infinity)'</li>
|
|
391 <li>Negative infinity is formatted as '(-Infinity)'</li>
|
|
392 </ol>
|
|
393 <P>
|
|
394 <DD><DL>
|
|
395 <DT><B>Parameters:</B><DD><CODE>value</CODE> - the double to format.<DD><CODE>format</CODE> - the format used.<DD><CODE>toAppendTo</CODE> - where the text is to be appended<DD><CODE>pos</CODE> - On input: an alignment field, if desired. On output: the
|
|
396 offsets of the alignment field
|
|
397 <DT><B>Returns:</B><DD>the value passed in as toAppendTo.</DL>
|
|
398 </DD>
|
|
399 </DL>
|
|
400 <!-- ========= END OF CLASS DATA ========= -->
|
|
401 <HR>
|
|
402
|
|
403
|
|
404 <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
405 <A NAME="navbar_bottom"><!-- --></A>
|
|
406 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
407 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
408 <TR>
|
|
409 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
410 <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
411 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
412 <TR ALIGN="center" VALIGN="top">
|
|
413 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
414 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
415 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
416 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CompositeFormat.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
417 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
418 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
419 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
420 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
421 </TR>
|
|
422 </TABLE>
|
|
423 </TD>
|
|
424 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
425 </EM>
|
|
426 </TD>
|
|
427 </TR>
|
|
428
|
|
429 <TR>
|
|
430 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
431 <A HREF="../../../../../org/apache/commons/math/util/BigRealField.html" title="class in org.apache.commons.math.util"><B>PREV CLASS</B></A>
|
|
432 <A HREF="../../../../../org/apache/commons/math/util/ContinuedFraction.html" title="class in org.apache.commons.math.util"><B>NEXT CLASS</B></A></FONT></TD>
|
|
433 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
434 <A HREF="../../../../../index.html?org/apache/commons/math/util/CompositeFormat.html" target="_top"><B>FRAMES</B></A>
|
|
435 <A HREF="CompositeFormat.html" target="_top"><B>NO FRAMES</B></A>
|
|
436 <SCRIPT type="text/javascript">
|
|
437 <!--
|
|
438 if(window==top) {
|
|
439 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
440 }
|
|
441 //-->
|
|
442 </SCRIPT>
|
|
443 <NOSCRIPT>
|
|
444 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
445 </NOSCRIPT>
|
|
446
|
|
447
|
|
448 </FONT></TD>
|
|
449 </TR>
|
|
450 <TR>
|
|
451 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
452 SUMMARY: <A HREF="#nested_classes_inherited_from_class_java.text.Format">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
453 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
454 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
455 </TR>
|
|
456 </TABLE>
|
|
457 <A NAME="skip-navbar_bottom"></A>
|
|
458 <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
459
|
|
460 <HR>
|
|
461 Copyright © 2003-2010 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
|
|
462 </BODY>
|
|
463 </HTML>
|