a whole bunch of stuff
[ephemerata.git] / Toady / lib / commons-lang-2.4 / apidocs / org / apache / commons / lang / time / FastDateFormat.html
blob02c79ccb2986dad2db7a980dca6083b9b0e07ff3
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.4.2_16) on Sat Mar 15 20:43:48 PDT 2008 -->
6 <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
7 <TITLE>
8 FastDateFormat (Commons Lang 2.4 API)
9 </TITLE>
11 <META NAME="keywords" CONTENT="org.apache.commons.lang.time.FastDateFormat class">
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
15 <SCRIPT type="text/javascript">
16 function windowTitle()
18 parent.document.title="FastDateFormat (Commons Lang 2.4 API)";
20 </SCRIPT>
22 </HEAD>
24 <BODY BGCOLOR="white" onload="windowTitle();">
27 <!-- ========= START OF TOP NAVBAR ======= -->
28 <A NAME="navbar_top"><!-- --></A>
29 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
30 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
31 <TR>
32 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
33 <A NAME="navbar_top_firstrow"><!-- --></A>
34 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
35 <TR ALIGN="center" VALIGN="top">
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
38 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FastDateFormat.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44 </TR>
45 </TABLE>
46 </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48 </EM>
49 </TD>
50 </TR>
52 <TR>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 &nbsp;<A HREF="../../../../../org/apache/commons/lang/time/DurationFormatUtils.html" title="class in org.apache.commons.lang.time"><B>PREV CLASS</B></A>&nbsp;
55 &nbsp;<A HREF="../../../../../org/apache/commons/lang/time/StopWatch.html" title="class in org.apache.commons.lang.time"><B>NEXT CLASS</B></A></FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
58 &nbsp;<A HREF="FastDateFormat.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
59 &nbsp;<SCRIPT type="text/javascript">
60 <!--
61 if(window==top) {
62 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
64 //-->
65 </SCRIPT>
66 <NOSCRIPT>
67 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
68 </NOSCRIPT>
70 </FONT></TD>
71 </TR>
72 <TR>
73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74 SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_java.text.Format">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
76 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
77 </TR>
78 </TABLE>
79 <A NAME="skip-navbar_top"></A>
80 <!-- ========= END OF TOP NAVBAR ========= -->
82 <HR>
83 <!-- ======== START OF CLASS DATA ======== -->
84 <H2>
85 <FONT SIZE="-1">
86 org.apache.commons.lang.time</FONT>
87 <BR>
88 Class FastDateFormat</H2>
89 <PRE>
90 java.lang.Object
91 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by">java.text.Format
92 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.commons.lang.time.FastDateFormat</B>
93 </PRE>
94 <DL>
95 <DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, java.io.Serializable</DD>
96 </DL>
97 <HR>
98 <DL>
99 <DT>public class <B>FastDateFormat</B><DT>extends java.text.Format</DL>
102 <p>FastDateFormat is a fast and thread-safe version of
103 <CODE>SimpleDateFormat</CODE>.</p>
105 <p>This class can be used as a direct replacement to
106 <code>SimpleDateFormat</code> in most formatting situations.
107 This class is especially useful in multi-threaded server environments.
108 <code>SimpleDateFormat</code> is not thread-safe in any JDK version,
109 nor will it be as Sun have closed the bug/RFE.
110 </p>
112 <p>Only formatting is supported, but all patterns are compatible with
113 SimpleDateFormat (except time zones - see below).</p>
115 <p>Java 1.4 introduced a new pattern letter, <code>'Z'</code>, to represent
116 time zones in RFC822 format (eg. <code>+0800</code> or <code>-1100</code>).
117 This pattern letter can be used here (on all JDK versions).</p>
119 <p>In addition, the pattern <code>'ZZ'</code> has been made to represent
120 ISO8601 full format time zones (eg. <code>+08:00</code> or <code>-11:00</code>).
121 This introduces a minor incompatibility with Java 1.4, but at a gain of
122 useful functionality.</p>
126 <DL>
127 <DT><B>Since:</B></DT>
128 <DD>2.0</DD>
129 <DT><B>Version:</B></DT>
130 <DD>$Id: FastDateFormat.java 590552 2007-10-31 04:04:32Z bayard $</DD>
131 <DT><B>Author:</B></DT>
132 <DD>TeaTrove project, Brian S O'Neill, Sean Schofield, Gary Gregory, Stephen Colebourne, Nikolay Metchev</DD>
133 <DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#org.apache.commons.lang.time.FastDateFormat">Serialized Form</A></DL>
134 <HR>
137 <!-- ======== NESTED CLASS SUMMARY ======== -->
139 <A NAME="nested_class_summary"><!-- --></A>
140 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
141 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
142 <TD COLSPAN=2><FONT SIZE="+2">
143 <B>Nested Class Summary</B></FONT></TD>
144 </TR>
145 </TABLE>
146 &nbsp;<A NAME="nested_classes_inherited_from_class_java.text.Format"><!-- --></A>
147 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
148 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
149 <TD><B>Nested classes inherited from class java.text.Format</B></TD>
150 </TR>
151 <TR BGCOLOR="white" CLASS="TableRowColor">
152 <TD><CODE>java.text.Format.Field</CODE></TD>
153 </TR>
154 </TABLE>
155 &nbsp;
156 <!-- =========== FIELD SUMMARY =========== -->
158 <A NAME="field_summary"><!-- --></A>
159 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
160 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
161 <TD COLSPAN=2><FONT SIZE="+2">
162 <B>Field Summary</B></FONT></TD>
163 </TR>
164 <TR BGCOLOR="white" CLASS="TableRowColor">
165 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
166 <CODE>static&nbsp;int</CODE></FONT></TD>
167 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#FULL">FULL</A></B></CODE>
169 <BR>
170 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FULL locale dependent date or time style.</TD>
171 </TR>
172 <TR BGCOLOR="white" CLASS="TableRowColor">
173 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174 <CODE>static&nbsp;int</CODE></FONT></TD>
175 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#LONG">LONG</A></B></CODE>
177 <BR>
178 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LONG locale dependent date or time style.</TD>
179 </TR>
180 <TR BGCOLOR="white" CLASS="TableRowColor">
181 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182 <CODE>static&nbsp;int</CODE></FONT></TD>
183 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#MEDIUM">MEDIUM</A></B></CODE>
185 <BR>
186 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MEDIUM locale dependent date or time style.</TD>
187 </TR>
188 <TR BGCOLOR="white" CLASS="TableRowColor">
189 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190 <CODE>static&nbsp;int</CODE></FONT></TD>
191 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#SHORT">SHORT</A></B></CODE>
193 <BR>
194 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SHORT locale dependent date or time style.</TD>
195 </TR>
196 </TABLE>
197 &nbsp;
198 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
200 <A NAME="constructor_summary"><!-- --></A>
201 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
202 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
203 <TD COLSPAN=2><FONT SIZE="+2">
204 <B>Constructor Summary</B></FONT></TD>
205 </TR>
206 <TR BGCOLOR="white" CLASS="TableRowColor">
207 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208 <CODE>protected </CODE></FONT></TD>
209 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#FastDateFormat(java.lang.String, java.util.TimeZone, java.util.Locale)">FastDateFormat</A></B>(java.lang.String&nbsp;pattern,
210 java.util.TimeZone&nbsp;timeZone,
211 java.util.Locale&nbsp;locale)</CODE>
213 <BR>
214 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new FastDateFormat.</TD>
215 </TR>
216 </TABLE>
217 &nbsp;
218 <!-- ========== METHOD SUMMARY =========== -->
220 <A NAME="method_summary"><!-- --></A>
221 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
222 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
223 <TD COLSPAN=2><FONT SIZE="+2">
224 <B>Method Summary</B></FONT></TD>
225 </TR>
226 <TR BGCOLOR="white" CLASS="TableRowColor">
227 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
228 <CODE>protected &nbsp;java.lang.StringBuffer</CODE></FONT></TD>
229 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#applyRules(java.util.Calendar, java.lang.StringBuffer)">applyRules</A></B>(java.util.Calendar&nbsp;calendar,
230 java.lang.StringBuffer&nbsp;buf)</CODE>
232 <BR>
233 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs the formatting by applying the rules to the
234 specified calendar.</TD>
235 </TR>
236 <TR BGCOLOR="white" CLASS="TableRowColor">
237 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238 <CODE>&nbsp;boolean</CODE></FONT></TD>
239 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;obj)</CODE>
241 <BR>
242 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares two objects for equality.</TD>
243 </TR>
244 <TR BGCOLOR="white" CLASS="TableRowColor">
245 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246 <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
247 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#format(java.util.Calendar)">format</A></B>(java.util.Calendar&nbsp;calendar)</CODE>
249 <BR>
250 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats a <code>Calendar</code> object.</TD>
251 </TR>
252 <TR BGCOLOR="white" CLASS="TableRowColor">
253 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
254 <CODE>&nbsp;java.lang.StringBuffer</CODE></FONT></TD>
255 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#format(java.util.Calendar, java.lang.StringBuffer)">format</A></B>(java.util.Calendar&nbsp;calendar,
256 java.lang.StringBuffer&nbsp;buf)</CODE>
258 <BR>
259 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats a <code>Calendar</code> object into the
260 supplied <code>StringBuffer</code>.</TD>
261 </TR>
262 <TR BGCOLOR="white" CLASS="TableRowColor">
263 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264 <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
265 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#format(java.util.Date)">format</A></B>(java.util.Date&nbsp;date)</CODE>
267 <BR>
268 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats a <code>Date</code> object.</TD>
269 </TR>
270 <TR BGCOLOR="white" CLASS="TableRowColor">
271 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272 <CODE>&nbsp;java.lang.StringBuffer</CODE></FONT></TD>
273 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#format(java.util.Date, java.lang.StringBuffer)">format</A></B>(java.util.Date&nbsp;date,
274 java.lang.StringBuffer&nbsp;buf)</CODE>
276 <BR>
277 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats a <code>Date</code> object into the
278 supplied <code>StringBuffer</code>.</TD>
279 </TR>
280 <TR BGCOLOR="white" CLASS="TableRowColor">
281 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
282 <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
283 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#format(long)">format</A></B>(long&nbsp;millis)</CODE>
285 <BR>
286 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats a millisecond <code>long</code> value.</TD>
287 </TR>
288 <TR BGCOLOR="white" CLASS="TableRowColor">
289 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
290 <CODE>&nbsp;java.lang.StringBuffer</CODE></FONT></TD>
291 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#format(long, java.lang.StringBuffer)">format</A></B>(long&nbsp;millis,
292 java.lang.StringBuffer&nbsp;buf)</CODE>
294 <BR>
295 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats a milliseond <code>long</code> value into the
296 supplied <code>StringBuffer</code>.</TD>
297 </TR>
298 <TR BGCOLOR="white" CLASS="TableRowColor">
299 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
300 <CODE>&nbsp;java.lang.StringBuffer</CODE></FONT></TD>
301 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)">format</A></B>(java.lang.Object&nbsp;obj,
302 java.lang.StringBuffer&nbsp;toAppendTo,
303 java.text.FieldPosition&nbsp;pos)</CODE>
305 <BR>
306 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats a <code>Date</code>, <code>Calendar</code> or
307 <code>Long</code> (milliseconds) object.</TD>
308 </TR>
309 <TR BGCOLOR="white" CLASS="TableRowColor">
310 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
311 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
312 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getDateInstance(int)">getDateInstance</A></B>(int&nbsp;style)</CODE>
314 <BR>
315 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a date formatter instance using the specified style in the
316 default time zone and locale.</TD>
317 </TR>
318 <TR BGCOLOR="white" CLASS="TableRowColor">
319 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
320 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
321 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getDateInstance(int, java.util.Locale)">getDateInstance</A></B>(int&nbsp;style,
322 java.util.Locale&nbsp;locale)</CODE>
324 <BR>
325 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a date formatter instance using the specified style and
326 locale in the default time zone.</TD>
327 </TR>
328 <TR BGCOLOR="white" CLASS="TableRowColor">
329 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
330 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
331 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getDateInstance(int, java.util.TimeZone)">getDateInstance</A></B>(int&nbsp;style,
332 java.util.TimeZone&nbsp;timeZone)</CODE>
334 <BR>
335 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a date formatter instance using the specified style and
336 time zone in the default locale.</TD>
337 </TR>
338 <TR BGCOLOR="white" CLASS="TableRowColor">
339 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
340 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
341 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getDateInstance(int, java.util.TimeZone, java.util.Locale)">getDateInstance</A></B>(int&nbsp;style,
342 java.util.TimeZone&nbsp;timeZone,
343 java.util.Locale&nbsp;locale)</CODE>
345 <BR>
346 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a date formatter instance using the specified style, time
347 zone and locale.</TD>
348 </TR>
349 <TR BGCOLOR="white" CLASS="TableRowColor">
350 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
351 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
352 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getDateTimeInstance(int, int)">getDateTimeInstance</A></B>(int&nbsp;dateStyle,
353 int&nbsp;timeStyle)</CODE>
355 <BR>
356 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a date/time formatter instance using the specified style
357 in the default time zone and locale.</TD>
358 </TR>
359 <TR BGCOLOR="white" CLASS="TableRowColor">
360 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
361 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
362 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getDateTimeInstance(int, int, java.util.Locale)">getDateTimeInstance</A></B>(int&nbsp;dateStyle,
363 int&nbsp;timeStyle,
364 java.util.Locale&nbsp;locale)</CODE>
366 <BR>
367 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a date/time formatter instance using the specified style and
368 locale in the default time zone.</TD>
369 </TR>
370 <TR BGCOLOR="white" CLASS="TableRowColor">
371 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
372 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
373 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getDateTimeInstance(int, int, java.util.TimeZone)">getDateTimeInstance</A></B>(int&nbsp;dateStyle,
374 int&nbsp;timeStyle,
375 java.util.TimeZone&nbsp;timeZone)</CODE>
377 <BR>
378 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a date/time formatter instance using the specified style and
379 time zone in the default locale.</TD>
380 </TR>
381 <TR BGCOLOR="white" CLASS="TableRowColor">
382 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
383 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
384 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getDateTimeInstance(int, int, java.util.TimeZone, java.util.Locale)">getDateTimeInstance</A></B>(int&nbsp;dateStyle,
385 int&nbsp;timeStyle,
386 java.util.TimeZone&nbsp;timeZone,
387 java.util.Locale&nbsp;locale)</CODE>
389 <BR>
390 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a date/time formatter instance using the specified style,
391 time zone and locale.</TD>
392 </TR>
393 <TR BGCOLOR="white" CLASS="TableRowColor">
394 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
395 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
396 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getInstance()">getInstance</A></B>()</CODE>
398 <BR>
399 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a formatter instance using the default pattern in the
400 default locale.</TD>
401 </TR>
402 <TR BGCOLOR="white" CLASS="TableRowColor">
403 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
404 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
405 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getInstance(java.lang.String)">getInstance</A></B>(java.lang.String&nbsp;pattern)</CODE>
407 <BR>
408 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a formatter instance using the specified pattern in the
409 default locale.</TD>
410 </TR>
411 <TR BGCOLOR="white" CLASS="TableRowColor">
412 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
413 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
414 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getInstance(java.lang.String, java.util.Locale)">getInstance</A></B>(java.lang.String&nbsp;pattern,
415 java.util.Locale&nbsp;locale)</CODE>
417 <BR>
418 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a formatter instance using the specified pattern and
419 locale.</TD>
420 </TR>
421 <TR BGCOLOR="white" CLASS="TableRowColor">
422 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
423 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
424 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getInstance(java.lang.String, java.util.TimeZone)">getInstance</A></B>(java.lang.String&nbsp;pattern,
425 java.util.TimeZone&nbsp;timeZone)</CODE>
427 <BR>
428 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a formatter instance using the specified pattern and
429 time zone.</TD>
430 </TR>
431 <TR BGCOLOR="white" CLASS="TableRowColor">
432 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
433 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
434 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getInstance(java.lang.String, java.util.TimeZone, java.util.Locale)">getInstance</A></B>(java.lang.String&nbsp;pattern,
435 java.util.TimeZone&nbsp;timeZone,
436 java.util.Locale&nbsp;locale)</CODE>
438 <BR>
439 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a formatter instance using the specified pattern, time zone
440 and locale.</TD>
441 </TR>
442 <TR BGCOLOR="white" CLASS="TableRowColor">
443 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
444 <CODE>&nbsp;java.util.Locale</CODE></FONT></TD>
445 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getLocale()">getLocale</A></B>()</CODE>
447 <BR>
448 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the locale used by this formatter.</TD>
449 </TR>
450 <TR BGCOLOR="white" CLASS="TableRowColor">
451 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
452 <CODE>&nbsp;int</CODE></FONT></TD>
453 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getMaxLengthEstimate()">getMaxLengthEstimate</A></B>()</CODE>
455 <BR>
456 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets an estimate for the maximum string length that the
457 formatter will produce.</TD>
458 </TR>
459 <TR BGCOLOR="white" CLASS="TableRowColor">
460 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
461 <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
462 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getPattern()">getPattern</A></B>()</CODE>
464 <BR>
465 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the pattern used by this formatter.</TD>
466 </TR>
467 <TR BGCOLOR="white" CLASS="TableRowColor">
468 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
469 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
470 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getTimeInstance(int)">getTimeInstance</A></B>(int&nbsp;style)</CODE>
472 <BR>
473 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a time formatter instance using the specified style in the
474 default time zone and locale.</TD>
475 </TR>
476 <TR BGCOLOR="white" CLASS="TableRowColor">
477 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
478 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
479 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getTimeInstance(int, java.util.Locale)">getTimeInstance</A></B>(int&nbsp;style,
480 java.util.Locale&nbsp;locale)</CODE>
482 <BR>
483 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a time formatter instance using the specified style and
484 locale in the default time zone.</TD>
485 </TR>
486 <TR BGCOLOR="white" CLASS="TableRowColor">
487 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
488 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
489 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getTimeInstance(int, java.util.TimeZone)">getTimeInstance</A></B>(int&nbsp;style,
490 java.util.TimeZone&nbsp;timeZone)</CODE>
492 <BR>
493 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a time formatter instance using the specified style and
494 time zone in the default locale.</TD>
495 </TR>
496 <TR BGCOLOR="white" CLASS="TableRowColor">
497 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
498 <CODE>static&nbsp;<A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A></CODE></FONT></TD>
499 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getTimeInstance(int, java.util.TimeZone, java.util.Locale)">getTimeInstance</A></B>(int&nbsp;style,
500 java.util.TimeZone&nbsp;timeZone,
501 java.util.Locale&nbsp;locale)</CODE>
503 <BR>
504 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a time formatter instance using the specified style, time
505 zone and locale.</TD>
506 </TR>
507 <TR BGCOLOR="white" CLASS="TableRowColor">
508 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
509 <CODE>&nbsp;java.util.TimeZone</CODE></FONT></TD>
510 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getTimeZone()">getTimeZone</A></B>()</CODE>
512 <BR>
513 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the time zone used by this formatter.</TD>
514 </TR>
515 <TR BGCOLOR="white" CLASS="TableRowColor">
516 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
517 <CODE>&nbsp;boolean</CODE></FONT></TD>
518 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getTimeZoneOverridesCalendar()">getTimeZoneOverridesCalendar</A></B>()</CODE>
520 <BR>
521 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if the time zone of the
522 calendar overrides the time zone of the formatter.</TD>
523 </TR>
524 <TR BGCOLOR="white" CLASS="TableRowColor">
525 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
526 <CODE>&nbsp;int</CODE></FONT></TD>
527 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#hashCode()">hashCode</A></B>()</CODE>
529 <BR>
530 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a hashcode compatible with equals.</TD>
531 </TR>
532 <TR BGCOLOR="white" CLASS="TableRowColor">
533 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
534 <CODE>protected &nbsp;void</CODE></FONT></TD>
535 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#init()">init</A></B>()</CODE>
537 <BR>
538 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initializes the instance for first use.</TD>
539 </TR>
540 <TR BGCOLOR="white" CLASS="TableRowColor">
541 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
542 <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
543 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#parseObject(java.lang.String, java.text.ParsePosition)">parseObject</A></B>(java.lang.String&nbsp;source,
544 java.text.ParsePosition&nbsp;pos)</CODE>
546 <BR>
547 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parsing is not supported.</TD>
548 </TR>
549 <TR BGCOLOR="white" CLASS="TableRowColor">
550 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
551 <CODE>protected &nbsp;java.util.List</CODE></FONT></TD>
552 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#parsePattern()">parsePattern</A></B>()</CODE>
554 <BR>
555 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of Rules given a pattern.</TD>
556 </TR>
557 <TR BGCOLOR="white" CLASS="TableRowColor">
558 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
559 <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
560 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#parseToken(java.lang.String, int[])">parseToken</A></B>(java.lang.String&nbsp;pattern,
561 int[]&nbsp;indexRef)</CODE>
563 <BR>
564 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs the parsing of tokens.</TD>
565 </TR>
566 <TR BGCOLOR="white" CLASS="TableRowColor">
567 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
568 <CODE>protected &nbsp;org.apache.commons.lang.time.FastDateFormat.NumberRule</CODE></FONT></TD>
569 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#selectNumberRule(int, int)">selectNumberRule</A></B>(int&nbsp;field,
570 int&nbsp;padding)</CODE>
572 <BR>
573 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets an appropriate rule for the padding required.</TD>
574 </TR>
575 <TR BGCOLOR="white" CLASS="TableRowColor">
576 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
577 <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
578 <TD><CODE><B><A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#toString()">toString</A></B>()</CODE>
580 <BR>
581 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a debugging string version of this formatter.</TD>
582 </TR>
583 </TABLE>
584 &nbsp;<A NAME="methods_inherited_from_class_java.text.Format"><!-- --></A>
585 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
586 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
587 <TD><B>Methods inherited from class java.text.Format</B></TD>
588 </TR>
589 <TR BGCOLOR="white" CLASS="TableRowColor">
590 <TD><CODE>clone, format, formatToCharacterIterator, parseObject</CODE></TD>
591 </TR>
592 </TABLE>
593 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
594 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
595 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
596 <TD><B>Methods inherited from class java.lang.Object</B></TD>
597 </TR>
598 <TR BGCOLOR="white" CLASS="TableRowColor">
599 <TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
600 </TR>
601 </TABLE>
602 &nbsp;
605 <!-- ============ FIELD DETAIL =========== -->
607 <A NAME="field_detail"><!-- --></A>
608 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
609 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
610 <TD COLSPAN=1><FONT SIZE="+2">
611 <B>Field Detail</B></FONT></TD>
612 </TR>
613 </TABLE>
615 <A NAME="FULL"><!-- --></A><H3>
616 FULL</H3>
617 <PRE>
618 public static final int <B>FULL</B></PRE>
619 <DL>
620 <DD>FULL locale dependent date or time style.
622 <DL>
623 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.lang.time.FastDateFormat.FULL">Constant Field Values</A></DL>
624 </DL>
625 <HR>
627 <A NAME="LONG"><!-- --></A><H3>
628 LONG</H3>
629 <PRE>
630 public static final int <B>LONG</B></PRE>
631 <DL>
632 <DD>LONG locale dependent date or time style.
634 <DL>
635 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.lang.time.FastDateFormat.LONG">Constant Field Values</A></DL>
636 </DL>
637 <HR>
639 <A NAME="MEDIUM"><!-- --></A><H3>
640 MEDIUM</H3>
641 <PRE>
642 public static final int <B>MEDIUM</B></PRE>
643 <DL>
644 <DD>MEDIUM locale dependent date or time style.
646 <DL>
647 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.lang.time.FastDateFormat.MEDIUM">Constant Field Values</A></DL>
648 </DL>
649 <HR>
651 <A NAME="SHORT"><!-- --></A><H3>
652 SHORT</H3>
653 <PRE>
654 public static final int <B>SHORT</B></PRE>
655 <DL>
656 <DD>SHORT locale dependent date or time style.
658 <DL>
659 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.lang.time.FastDateFormat.SHORT">Constant Field Values</A></DL>
660 </DL>
662 <!-- ========= CONSTRUCTOR DETAIL ======== -->
664 <A NAME="constructor_detail"><!-- --></A>
665 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
666 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
667 <TD COLSPAN=1><FONT SIZE="+2">
668 <B>Constructor Detail</B></FONT></TD>
669 </TR>
670 </TABLE>
672 <A NAME="FastDateFormat(java.lang.String, java.util.TimeZone, java.util.Locale)"><!-- --></A><H3>
673 FastDateFormat</H3>
674 <PRE>
675 protected <B>FastDateFormat</B>(java.lang.String&nbsp;pattern,
676 java.util.TimeZone&nbsp;timeZone,
677 java.util.Locale&nbsp;locale)</PRE>
678 <DL>
679 <DD><p>Constructs a new FastDateFormat.</p>
681 <DT><B>Parameters:</B><DD><CODE>pattern</CODE> - <CODE>SimpleDateFormat</CODE> compatible
682 pattern<DD><CODE>timeZone</CODE> - time zone to use, <code>null</code> means use
683 default for <code>Date</code> and value within for
684 <code>Calendar</code><DD><CODE>locale</CODE> - locale, <code>null</code> means use system
685 default
686 <DT><B>Throws:</B>
687 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if pattern is invalid or
688 <code>null</code></DL>
690 <!-- ============ METHOD DETAIL ========== -->
692 <A NAME="method_detail"><!-- --></A>
693 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
694 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
695 <TD COLSPAN=1><FONT SIZE="+2">
696 <B>Method Detail</B></FONT></TD>
697 </TR>
698 </TABLE>
700 <A NAME="getInstance()"><!-- --></A><H3>
701 getInstance</H3>
702 <PRE>
703 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getInstance</B>()</PRE>
704 <DL>
705 <DD><p>Gets a formatter instance using the default pattern in the
706 default locale.</p>
708 <DD><DL>
710 <DT><B>Returns:</B><DD>a date/time formatter</DL>
711 </DD>
712 </DL>
713 <HR>
715 <A NAME="getInstance(java.lang.String)"><!-- --></A><H3>
716 getInstance</H3>
717 <PRE>
718 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getInstance</B>(java.lang.String&nbsp;pattern)</PRE>
719 <DL>
720 <DD><p>Gets a formatter instance using the specified pattern in the
721 default locale.</p>
723 <DD><DL>
724 <DT><B>Parameters:</B><DD><CODE>pattern</CODE> - <CODE>SimpleDateFormat</CODE> compatible
725 pattern
726 <DT><B>Returns:</B><DD>a pattern based date/time formatter
727 <DT><B>Throws:</B>
728 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if pattern is invalid</DL>
729 </DD>
730 </DL>
731 <HR>
733 <A NAME="getInstance(java.lang.String, java.util.TimeZone)"><!-- --></A><H3>
734 getInstance</H3>
735 <PRE>
736 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getInstance</B>(java.lang.String&nbsp;pattern,
737 java.util.TimeZone&nbsp;timeZone)</PRE>
738 <DL>
739 <DD><p>Gets a formatter instance using the specified pattern and
740 time zone.</p>
742 <DD><DL>
743 <DT><B>Parameters:</B><DD><CODE>pattern</CODE> - <CODE>SimpleDateFormat</CODE> compatible
744 pattern<DD><CODE>timeZone</CODE> - optional time zone, overrides time zone of
745 formatted date
746 <DT><B>Returns:</B><DD>a pattern based date/time formatter
747 <DT><B>Throws:</B>
748 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if pattern is invalid</DL>
749 </DD>
750 </DL>
751 <HR>
753 <A NAME="getInstance(java.lang.String, java.util.Locale)"><!-- --></A><H3>
754 getInstance</H3>
755 <PRE>
756 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getInstance</B>(java.lang.String&nbsp;pattern,
757 java.util.Locale&nbsp;locale)</PRE>
758 <DL>
759 <DD><p>Gets a formatter instance using the specified pattern and
760 locale.</p>
762 <DD><DL>
763 <DT><B>Parameters:</B><DD><CODE>pattern</CODE> - <CODE>SimpleDateFormat</CODE> compatible
764 pattern<DD><CODE>locale</CODE> - optional locale, overrides system locale
765 <DT><B>Returns:</B><DD>a pattern based date/time formatter
766 <DT><B>Throws:</B>
767 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if pattern is invalid</DL>
768 </DD>
769 </DL>
770 <HR>
772 <A NAME="getInstance(java.lang.String, java.util.TimeZone, java.util.Locale)"><!-- --></A><H3>
773 getInstance</H3>
774 <PRE>
775 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getInstance</B>(java.lang.String&nbsp;pattern,
776 java.util.TimeZone&nbsp;timeZone,
777 java.util.Locale&nbsp;locale)</PRE>
778 <DL>
779 <DD><p>Gets a formatter instance using the specified pattern, time zone
780 and locale.</p>
782 <DD><DL>
783 <DT><B>Parameters:</B><DD><CODE>pattern</CODE> - <CODE>SimpleDateFormat</CODE> compatible
784 pattern<DD><CODE>timeZone</CODE> - optional time zone, overrides time zone of
785 formatted date<DD><CODE>locale</CODE> - optional locale, overrides system locale
786 <DT><B>Returns:</B><DD>a pattern based date/time formatter
787 <DT><B>Throws:</B>
788 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if pattern is invalid
789 or <code>null</code></DL>
790 </DD>
791 </DL>
792 <HR>
794 <A NAME="getDateInstance(int)"><!-- --></A><H3>
795 getDateInstance</H3>
796 <PRE>
797 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getDateInstance</B>(int&nbsp;style)</PRE>
798 <DL>
799 <DD><p>Gets a date formatter instance using the specified style in the
800 default time zone and locale.</p>
802 <DD><DL>
803 <DT><B>Parameters:</B><DD><CODE>style</CODE> - date style: FULL, LONG, MEDIUM, or SHORT
804 <DT><B>Returns:</B><DD>a localized standard date formatter
805 <DT><B>Throws:</B>
806 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no date
807 pattern defined<DT><B>Since:</B></DT>
808 <DD>2.1</DD>
809 </DL>
810 </DD>
811 </DL>
812 <HR>
814 <A NAME="getDateInstance(int, java.util.Locale)"><!-- --></A><H3>
815 getDateInstance</H3>
816 <PRE>
817 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getDateInstance</B>(int&nbsp;style,
818 java.util.Locale&nbsp;locale)</PRE>
819 <DL>
820 <DD><p>Gets a date formatter instance using the specified style and
821 locale in the default time zone.</p>
823 <DD><DL>
824 <DT><B>Parameters:</B><DD><CODE>style</CODE> - date style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>locale</CODE> - optional locale, overrides system locale
825 <DT><B>Returns:</B><DD>a localized standard date formatter
826 <DT><B>Throws:</B>
827 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no date
828 pattern defined<DT><B>Since:</B></DT>
829 <DD>2.1</DD>
830 </DL>
831 </DD>
832 </DL>
833 <HR>
835 <A NAME="getDateInstance(int, java.util.TimeZone)"><!-- --></A><H3>
836 getDateInstance</H3>
837 <PRE>
838 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getDateInstance</B>(int&nbsp;style,
839 java.util.TimeZone&nbsp;timeZone)</PRE>
840 <DL>
841 <DD><p>Gets a date formatter instance using the specified style and
842 time zone in the default locale.</p>
844 <DD><DL>
845 <DT><B>Parameters:</B><DD><CODE>style</CODE> - date style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>timeZone</CODE> - optional time zone, overrides time zone of
846 formatted date
847 <DT><B>Returns:</B><DD>a localized standard date formatter
848 <DT><B>Throws:</B>
849 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no date
850 pattern defined<DT><B>Since:</B></DT>
851 <DD>2.1</DD>
852 </DL>
853 </DD>
854 </DL>
855 <HR>
857 <A NAME="getDateInstance(int, java.util.TimeZone, java.util.Locale)"><!-- --></A><H3>
858 getDateInstance</H3>
859 <PRE>
860 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getDateInstance</B>(int&nbsp;style,
861 java.util.TimeZone&nbsp;timeZone,
862 java.util.Locale&nbsp;locale)</PRE>
863 <DL>
864 <DD><p>Gets a date formatter instance using the specified style, time
865 zone and locale.</p>
867 <DD><DL>
868 <DT><B>Parameters:</B><DD><CODE>style</CODE> - date style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>timeZone</CODE> - optional time zone, overrides time zone of
869 formatted date<DD><CODE>locale</CODE> - optional locale, overrides system locale
870 <DT><B>Returns:</B><DD>a localized standard date formatter
871 <DT><B>Throws:</B>
872 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no date
873 pattern defined</DL>
874 </DD>
875 </DL>
876 <HR>
878 <A NAME="getTimeInstance(int)"><!-- --></A><H3>
879 getTimeInstance</H3>
880 <PRE>
881 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getTimeInstance</B>(int&nbsp;style)</PRE>
882 <DL>
883 <DD><p>Gets a time formatter instance using the specified style in the
884 default time zone and locale.</p>
886 <DD><DL>
887 <DT><B>Parameters:</B><DD><CODE>style</CODE> - time style: FULL, LONG, MEDIUM, or SHORT
888 <DT><B>Returns:</B><DD>a localized standard time formatter
889 <DT><B>Throws:</B>
890 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no time
891 pattern defined<DT><B>Since:</B></DT>
892 <DD>2.1</DD>
893 </DL>
894 </DD>
895 </DL>
896 <HR>
898 <A NAME="getTimeInstance(int, java.util.Locale)"><!-- --></A><H3>
899 getTimeInstance</H3>
900 <PRE>
901 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getTimeInstance</B>(int&nbsp;style,
902 java.util.Locale&nbsp;locale)</PRE>
903 <DL>
904 <DD><p>Gets a time formatter instance using the specified style and
905 locale in the default time zone.</p>
907 <DD><DL>
908 <DT><B>Parameters:</B><DD><CODE>style</CODE> - time style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>locale</CODE> - optional locale, overrides system locale
909 <DT><B>Returns:</B><DD>a localized standard time formatter
910 <DT><B>Throws:</B>
911 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no time
912 pattern defined<DT><B>Since:</B></DT>
913 <DD>2.1</DD>
914 </DL>
915 </DD>
916 </DL>
917 <HR>
919 <A NAME="getTimeInstance(int, java.util.TimeZone)"><!-- --></A><H3>
920 getTimeInstance</H3>
921 <PRE>
922 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getTimeInstance</B>(int&nbsp;style,
923 java.util.TimeZone&nbsp;timeZone)</PRE>
924 <DL>
925 <DD><p>Gets a time formatter instance using the specified style and
926 time zone in the default locale.</p>
928 <DD><DL>
929 <DT><B>Parameters:</B><DD><CODE>style</CODE> - time style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>timeZone</CODE> - optional time zone, overrides time zone of
930 formatted time
931 <DT><B>Returns:</B><DD>a localized standard time formatter
932 <DT><B>Throws:</B>
933 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no time
934 pattern defined<DT><B>Since:</B></DT>
935 <DD>2.1</DD>
936 </DL>
937 </DD>
938 </DL>
939 <HR>
941 <A NAME="getTimeInstance(int, java.util.TimeZone, java.util.Locale)"><!-- --></A><H3>
942 getTimeInstance</H3>
943 <PRE>
944 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getTimeInstance</B>(int&nbsp;style,
945 java.util.TimeZone&nbsp;timeZone,
946 java.util.Locale&nbsp;locale)</PRE>
947 <DL>
948 <DD><p>Gets a time formatter instance using the specified style, time
949 zone and locale.</p>
951 <DD><DL>
952 <DT><B>Parameters:</B><DD><CODE>style</CODE> - time style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>timeZone</CODE> - optional time zone, overrides time zone of
953 formatted time<DD><CODE>locale</CODE> - optional locale, overrides system locale
954 <DT><B>Returns:</B><DD>a localized standard time formatter
955 <DT><B>Throws:</B>
956 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no time
957 pattern defined</DL>
958 </DD>
959 </DL>
960 <HR>
962 <A NAME="getDateTimeInstance(int, int)"><!-- --></A><H3>
963 getDateTimeInstance</H3>
964 <PRE>
965 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getDateTimeInstance</B>(int&nbsp;dateStyle,
966 int&nbsp;timeStyle)</PRE>
967 <DL>
968 <DD><p>Gets a date/time formatter instance using the specified style
969 in the default time zone and locale.</p>
971 <DD><DL>
972 <DT><B>Parameters:</B><DD><CODE>dateStyle</CODE> - date style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>timeStyle</CODE> - time style: FULL, LONG, MEDIUM, or SHORT
973 <DT><B>Returns:</B><DD>a localized standard date/time formatter
974 <DT><B>Throws:</B>
975 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no date/time
976 pattern defined<DT><B>Since:</B></DT>
977 <DD>2.1</DD>
978 </DL>
979 </DD>
980 </DL>
981 <HR>
983 <A NAME="getDateTimeInstance(int, int, java.util.Locale)"><!-- --></A><H3>
984 getDateTimeInstance</H3>
985 <PRE>
986 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getDateTimeInstance</B>(int&nbsp;dateStyle,
987 int&nbsp;timeStyle,
988 java.util.Locale&nbsp;locale)</PRE>
989 <DL>
990 <DD><p>Gets a date/time formatter instance using the specified style and
991 locale in the default time zone.</p>
993 <DD><DL>
994 <DT><B>Parameters:</B><DD><CODE>dateStyle</CODE> - date style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>timeStyle</CODE> - time style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>locale</CODE> - optional locale, overrides system locale
995 <DT><B>Returns:</B><DD>a localized standard date/time formatter
996 <DT><B>Throws:</B>
997 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no date/time
998 pattern defined<DT><B>Since:</B></DT>
999 <DD>2.1</DD>
1000 </DL>
1001 </DD>
1002 </DL>
1003 <HR>
1005 <A NAME="getDateTimeInstance(int, int, java.util.TimeZone)"><!-- --></A><H3>
1006 getDateTimeInstance</H3>
1007 <PRE>
1008 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getDateTimeInstance</B>(int&nbsp;dateStyle,
1009 int&nbsp;timeStyle,
1010 java.util.TimeZone&nbsp;timeZone)</PRE>
1011 <DL>
1012 <DD><p>Gets a date/time formatter instance using the specified style and
1013 time zone in the default locale.</p>
1015 <DD><DL>
1016 <DT><B>Parameters:</B><DD><CODE>dateStyle</CODE> - date style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>timeStyle</CODE> - time style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>timeZone</CODE> - optional time zone, overrides time zone of
1017 formatted date
1018 <DT><B>Returns:</B><DD>a localized standard date/time formatter
1019 <DT><B>Throws:</B>
1020 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no date/time
1021 pattern defined<DT><B>Since:</B></DT>
1022 <DD>2.1</DD>
1023 </DL>
1024 </DD>
1025 </DL>
1026 <HR>
1028 <A NAME="getDateTimeInstance(int, int, java.util.TimeZone, java.util.Locale)"><!-- --></A><H3>
1029 getDateTimeInstance</H3>
1030 <PRE>
1031 public static <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html" title="class in org.apache.commons.lang.time">FastDateFormat</A> <B>getDateTimeInstance</B>(int&nbsp;dateStyle,
1032 int&nbsp;timeStyle,
1033 java.util.TimeZone&nbsp;timeZone,
1034 java.util.Locale&nbsp;locale)</PRE>
1035 <DL>
1036 <DD><p>Gets a date/time formatter instance using the specified style,
1037 time zone and locale.</p>
1039 <DD><DL>
1040 <DT><B>Parameters:</B><DD><CODE>dateStyle</CODE> - date style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>timeStyle</CODE> - time style: FULL, LONG, MEDIUM, or SHORT<DD><CODE>timeZone</CODE> - optional time zone, overrides time zone of
1041 formatted date<DD><CODE>locale</CODE> - optional locale, overrides system locale
1042 <DT><B>Returns:</B><DD>a localized standard date/time formatter
1043 <DT><B>Throws:</B>
1044 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Locale has no date/time
1045 pattern defined</DL>
1046 </DD>
1047 </DL>
1048 <HR>
1050 <A NAME="init()"><!-- --></A><H3>
1051 init</H3>
1052 <PRE>
1053 protected void <B>init</B>()</PRE>
1054 <DL>
1055 <DD><p>Initializes the instance for first use.</p>
1057 <DD><DL>
1058 </DL>
1059 </DD>
1060 </DL>
1061 <HR>
1063 <A NAME="parsePattern()"><!-- --></A><H3>
1064 parsePattern</H3>
1065 <PRE>
1066 protected java.util.List <B>parsePattern</B>()</PRE>
1067 <DL>
1068 <DD><p>Returns a list of Rules given a pattern.</p>
1070 <DD><DL>
1072 <DT><B>Returns:</B><DD>a <code>List</code> of Rule objects
1073 <DT><B>Throws:</B>
1074 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if pattern is invalid</DL>
1075 </DD>
1076 </DL>
1077 <HR>
1079 <A NAME="parseToken(java.lang.String, int[])"><!-- --></A><H3>
1080 parseToken</H3>
1081 <PRE>
1082 protected java.lang.String <B>parseToken</B>(java.lang.String&nbsp;pattern,
1083 int[]&nbsp;indexRef)</PRE>
1084 <DL>
1085 <DD><p>Performs the parsing of tokens.</p>
1087 <DD><DL>
1088 <DT><B>Parameters:</B><DD><CODE>pattern</CODE> - the pattern<DD><CODE>indexRef</CODE> - index references
1089 <DT><B>Returns:</B><DD>parsed token</DL>
1090 </DD>
1091 </DL>
1092 <HR>
1094 <A NAME="selectNumberRule(int, int)"><!-- --></A><H3>
1095 selectNumberRule</H3>
1096 <PRE>
1097 protected org.apache.commons.lang.time.FastDateFormat.NumberRule <B>selectNumberRule</B>(int&nbsp;field,
1098 int&nbsp;padding)</PRE>
1099 <DL>
1100 <DD><p>Gets an appropriate rule for the padding required.</p>
1102 <DD><DL>
1103 <DT><B>Parameters:</B><DD><CODE>field</CODE> - the field to get a rule for<DD><CODE>padding</CODE> - the padding required
1104 <DT><B>Returns:</B><DD>a new rule with the correct padding</DL>
1105 </DD>
1106 </DL>
1107 <HR>
1109 <A NAME="format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)"><!-- --></A><H3>
1110 format</H3>
1111 <PRE>
1112 public java.lang.StringBuffer <B>format</B>(java.lang.Object&nbsp;obj,
1113 java.lang.StringBuffer&nbsp;toAppendTo,
1114 java.text.FieldPosition&nbsp;pos)</PRE>
1115 <DL>
1116 <DD><p>Formats a <code>Date</code>, <code>Calendar</code> or
1117 <code>Long</code> (milliseconds) object.</p>
1119 <DD><DL>
1120 <DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to format<DD><CODE>toAppendTo</CODE> - the buffer to append to<DD><CODE>pos</CODE> - the position - ignored
1121 <DT><B>Returns:</B><DD>the buffer passed in</DL>
1122 </DD>
1123 </DL>
1124 <HR>
1126 <A NAME="format(long)"><!-- --></A><H3>
1127 format</H3>
1128 <PRE>
1129 public java.lang.String <B>format</B>(long&nbsp;millis)</PRE>
1130 <DL>
1131 <DD><p>Formats a millisecond <code>long</code> value.</p>
1133 <DD><DL>
1134 <DT><B>Parameters:</B><DD><CODE>millis</CODE> - the millisecond value to format
1135 <DT><B>Returns:</B><DD>the formatted string<DT><B>Since:</B></DT>
1136 <DD>2.1</DD>
1137 </DL>
1138 </DD>
1139 </DL>
1140 <HR>
1142 <A NAME="format(java.util.Date)"><!-- --></A><H3>
1143 format</H3>
1144 <PRE>
1145 public java.lang.String <B>format</B>(java.util.Date&nbsp;date)</PRE>
1146 <DL>
1147 <DD><p>Formats a <code>Date</code> object.</p>
1149 <DD><DL>
1150 <DT><B>Parameters:</B><DD><CODE>date</CODE> - the date to format
1151 <DT><B>Returns:</B><DD>the formatted string</DL>
1152 </DD>
1153 </DL>
1154 <HR>
1156 <A NAME="format(java.util.Calendar)"><!-- --></A><H3>
1157 format</H3>
1158 <PRE>
1159 public java.lang.String <B>format</B>(java.util.Calendar&nbsp;calendar)</PRE>
1160 <DL>
1161 <DD><p>Formats a <code>Calendar</code> object.</p>
1163 <DD><DL>
1164 <DT><B>Parameters:</B><DD><CODE>calendar</CODE> - the calendar to format
1165 <DT><B>Returns:</B><DD>the formatted string</DL>
1166 </DD>
1167 </DL>
1168 <HR>
1170 <A NAME="format(long, java.lang.StringBuffer)"><!-- --></A><H3>
1171 format</H3>
1172 <PRE>
1173 public java.lang.StringBuffer <B>format</B>(long&nbsp;millis,
1174 java.lang.StringBuffer&nbsp;buf)</PRE>
1175 <DL>
1176 <DD><p>Formats a milliseond <code>long</code> value into the
1177 supplied <code>StringBuffer</code>.</p>
1179 <DD><DL>
1180 <DT><B>Parameters:</B><DD><CODE>millis</CODE> - the millisecond value to format<DD><CODE>buf</CODE> - the buffer to format into
1181 <DT><B>Returns:</B><DD>the specified string buffer<DT><B>Since:</B></DT>
1182 <DD>2.1</DD>
1183 </DL>
1184 </DD>
1185 </DL>
1186 <HR>
1188 <A NAME="format(java.util.Date, java.lang.StringBuffer)"><!-- --></A><H3>
1189 format</H3>
1190 <PRE>
1191 public java.lang.StringBuffer <B>format</B>(java.util.Date&nbsp;date,
1192 java.lang.StringBuffer&nbsp;buf)</PRE>
1193 <DL>
1194 <DD><p>Formats a <code>Date</code> object into the
1195 supplied <code>StringBuffer</code>.</p>
1197 <DD><DL>
1198 <DT><B>Parameters:</B><DD><CODE>date</CODE> - the date to format<DD><CODE>buf</CODE> - the buffer to format into
1199 <DT><B>Returns:</B><DD>the specified string buffer</DL>
1200 </DD>
1201 </DL>
1202 <HR>
1204 <A NAME="format(java.util.Calendar, java.lang.StringBuffer)"><!-- --></A><H3>
1205 format</H3>
1206 <PRE>
1207 public java.lang.StringBuffer <B>format</B>(java.util.Calendar&nbsp;calendar,
1208 java.lang.StringBuffer&nbsp;buf)</PRE>
1209 <DL>
1210 <DD><p>Formats a <code>Calendar</code> object into the
1211 supplied <code>StringBuffer</code>.</p>
1213 <DD><DL>
1214 <DT><B>Parameters:</B><DD><CODE>calendar</CODE> - the calendar to format<DD><CODE>buf</CODE> - the buffer to format into
1215 <DT><B>Returns:</B><DD>the specified string buffer</DL>
1216 </DD>
1217 </DL>
1218 <HR>
1220 <A NAME="applyRules(java.util.Calendar, java.lang.StringBuffer)"><!-- --></A><H3>
1221 applyRules</H3>
1222 <PRE>
1223 protected java.lang.StringBuffer <B>applyRules</B>(java.util.Calendar&nbsp;calendar,
1224 java.lang.StringBuffer&nbsp;buf)</PRE>
1225 <DL>
1226 <DD><p>Performs the formatting by applying the rules to the
1227 specified calendar.</p>
1229 <DD><DL>
1230 <DT><B>Parameters:</B><DD><CODE>calendar</CODE> - the calendar to format<DD><CODE>buf</CODE> - the buffer to format into
1231 <DT><B>Returns:</B><DD>the specified string buffer</DL>
1232 </DD>
1233 </DL>
1234 <HR>
1236 <A NAME="parseObject(java.lang.String, java.text.ParsePosition)"><!-- --></A><H3>
1237 parseObject</H3>
1238 <PRE>
1239 public java.lang.Object <B>parseObject</B>(java.lang.String&nbsp;source,
1240 java.text.ParsePosition&nbsp;pos)</PRE>
1241 <DL>
1242 <DD><p>Parsing is not supported.</p>
1244 <DD><DL>
1245 <DT><B>Parameters:</B><DD><CODE>source</CODE> - the string to parse<DD><CODE>pos</CODE> - the parsing position
1246 <DT><B>Returns:</B><DD><code>null</code> as not supported</DL>
1247 </DD>
1248 </DL>
1249 <HR>
1251 <A NAME="getPattern()"><!-- --></A><H3>
1252 getPattern</H3>
1253 <PRE>
1254 public java.lang.String <B>getPattern</B>()</PRE>
1255 <DL>
1256 <DD><p>Gets the pattern used by this formatter.</p>
1258 <DD><DL>
1260 <DT><B>Returns:</B><DD>the pattern, <CODE>SimpleDateFormat</CODE> compatible</DL>
1261 </DD>
1262 </DL>
1263 <HR>
1265 <A NAME="getTimeZone()"><!-- --></A><H3>
1266 getTimeZone</H3>
1267 <PRE>
1268 public java.util.TimeZone <B>getTimeZone</B>()</PRE>
1269 <DL>
1270 <DD><p>Gets the time zone used by this formatter.</p>
1272 <p>This zone is always used for <code>Date</code> formatting.
1273 If a <code>Calendar</code> is passed in to be formatted, the
1274 time zone on that may be used depending on
1275 <A HREF="../../../../../org/apache/commons/lang/time/FastDateFormat.html#getTimeZoneOverridesCalendar()"><CODE>getTimeZoneOverridesCalendar()</CODE></A>.</p>
1277 <DD><DL>
1279 <DT><B>Returns:</B><DD>the time zone</DL>
1280 </DD>
1281 </DL>
1282 <HR>
1284 <A NAME="getTimeZoneOverridesCalendar()"><!-- --></A><H3>
1285 getTimeZoneOverridesCalendar</H3>
1286 <PRE>
1287 public boolean <B>getTimeZoneOverridesCalendar</B>()</PRE>
1288 <DL>
1289 <DD><p>Returns <code>true</code> if the time zone of the
1290 calendar overrides the time zone of the formatter.</p>
1292 <DD><DL>
1294 <DT><B>Returns:</B><DD><code>true</code> if time zone of formatter
1295 overridden for calendars</DL>
1296 </DD>
1297 </DL>
1298 <HR>
1300 <A NAME="getLocale()"><!-- --></A><H3>
1301 getLocale</H3>
1302 <PRE>
1303 public java.util.Locale <B>getLocale</B>()</PRE>
1304 <DL>
1305 <DD><p>Gets the locale used by this formatter.</p>
1307 <DD><DL>
1309 <DT><B>Returns:</B><DD>the locale</DL>
1310 </DD>
1311 </DL>
1312 <HR>
1314 <A NAME="getMaxLengthEstimate()"><!-- --></A><H3>
1315 getMaxLengthEstimate</H3>
1316 <PRE>
1317 public int <B>getMaxLengthEstimate</B>()</PRE>
1318 <DL>
1319 <DD><p>Gets an estimate for the maximum string length that the
1320 formatter will produce.</p>
1322 <p>The actual formatted length will almost always be less than or
1323 equal to this amount.</p>
1325 <DD><DL>
1327 <DT><B>Returns:</B><DD>the maximum formatted length</DL>
1328 </DD>
1329 </DL>
1330 <HR>
1332 <A NAME="equals(java.lang.Object)"><!-- --></A><H3>
1333 equals</H3>
1334 <PRE>
1335 public boolean <B>equals</B>(java.lang.Object&nbsp;obj)</PRE>
1336 <DL>
1337 <DD><p>Compares two objects for equality.</p>
1339 <DD><DL>
1340 <DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to compare to
1341 <DT><B>Returns:</B><DD><code>true</code> if equal</DL>
1342 </DD>
1343 </DL>
1344 <HR>
1346 <A NAME="hashCode()"><!-- --></A><H3>
1347 hashCode</H3>
1348 <PRE>
1349 public int <B>hashCode</B>()</PRE>
1350 <DL>
1351 <DD><p>Returns a hashcode compatible with equals.</p>
1353 <DD><DL>
1355 <DT><B>Returns:</B><DD>a hashcode compatible with equals</DL>
1356 </DD>
1357 </DL>
1358 <HR>
1360 <A NAME="toString()"><!-- --></A><H3>
1361 toString</H3>
1362 <PRE>
1363 public java.lang.String <B>toString</B>()</PRE>
1364 <DL>
1365 <DD><p>Gets a debugging string version of this formatter.</p>
1367 <DD><DL>
1369 <DT><B>Returns:</B><DD>a debugging string</DL>
1370 </DD>
1371 </DL>
1372 <!-- ========= END OF CLASS DATA ========= -->
1373 <HR>
1376 <!-- ======= START OF BOTTOM NAVBAR ====== -->
1377 <A NAME="navbar_bottom"><!-- --></A>
1378 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1379 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1380 <TR>
1381 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1382 <A NAME="navbar_bottom_firstrow"><!-- --></A>
1383 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1384 <TR ALIGN="center" VALIGN="top">
1385 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1386 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1387 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1388 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FastDateFormat.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
1389 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1390 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1391 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1392 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1393 </TR>
1394 </TABLE>
1395 </TD>
1396 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1397 </EM>
1398 </TD>
1399 </TR>
1401 <TR>
1402 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1403 &nbsp;<A HREF="../../../../../org/apache/commons/lang/time/DurationFormatUtils.html" title="class in org.apache.commons.lang.time"><B>PREV CLASS</B></A>&nbsp;
1404 &nbsp;<A HREF="../../../../../org/apache/commons/lang/time/StopWatch.html" title="class in org.apache.commons.lang.time"><B>NEXT CLASS</B></A></FONT></TD>
1405 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1406 <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
1407 &nbsp;<A HREF="FastDateFormat.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
1408 &nbsp;<SCRIPT type="text/javascript">
1409 <!--
1410 if(window==top) {
1411 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
1413 //-->
1414 </SCRIPT>
1415 <NOSCRIPT>
1416 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
1417 </NOSCRIPT>
1419 </FONT></TD>
1420 </TR>
1421 <TR>
1422 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1423 SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_java.text.Format">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1424 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1425 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1426 </TR>
1427 </TABLE>
1428 <A NAME="skip-navbar_bottom"></A>
1429 <!-- ======== END OF BOTTOM NAVBAR ======= -->
1431 <HR>
1432 Copyright © 2001-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
1433 </BODY>
1434 </HTML>