/[debian]/libjempbox-java/branches/upstream/current/docs/javadoc/org/jempbox/impl/DateConverter.html
ViewVC logotype

Contents of /libjempbox-java/branches/upstream/current/docs/javadoc/org/jempbox/impl/DateConverter.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 427 - (show annotations)
Fri Nov 17 21:04:18 2006 UTC (14 years, 8 months ago) by gregoa
File MIME type: text/html
File size: 14289 byte(s)
[svn-inject] Installing original source of libjempbox-java
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_07) on Wed Apr 19 20:38:25 EDT 2006 -->
6 <TITLE>
7 DateConverter (JempBox-0.1.0-dev API)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.jempbox.impl.DateConverter class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="DateConverter (JempBox-0.1.0-dev API)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DateConverter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43 </TR>
44 </TABLE>
45 </TD>
46 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47 </EM>
48 </TD>
49 </TR>
50
51 <TR>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53 &nbsp;PREV CLASS&nbsp;
54 &nbsp;<A HREF="../../../org/jempbox/impl/XMLUtil.html" title="class in org.jempbox.impl"><B>NEXT CLASS</B></A></FONT></TD>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
57 &nbsp;<A HREF="DateConverter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
58 &nbsp;<SCRIPT type="text/javascript">
59 <!--
60 if(window==top) {
61 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
62 }
63 //-->
64 </SCRIPT>
65 <NOSCRIPT>
66 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
67 </NOSCRIPT>
68
69 </FONT></TD>
70 </TR>
71 <TR>
72 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76 </TR>
77 </TABLE>
78 <A NAME="skip-navbar_top"></A>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80
81 <HR>
82 <!-- ======== START OF CLASS DATA ======== -->
83 <H2>
84 <FONT SIZE="-1">
85 org.jempbox.impl</FONT>
86 <BR>
87 Class DateConverter</H2>
88 <PRE>
89 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
90 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jempbox.impl.DateConverter</B>
91 </PRE>
92 <HR>
93 <DL>
94 <DT>public class <B>DateConverter</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
95
96 <P>
97 This class is used to convert dates to strings and back using the PDF
98 date standards. Date are described in PDFReference1.4 section 3.8.2
99 <P>
100
101 <P>
102 <DL>
103 <DT><B>Version:</B></DT>
104 <DD>$Revision: 1.1 $</DD>
105 <DT><B>Author:</B></DT>
106 <DD>Ben Litchfield (ben@benlitchfield.com)</DD>
107 </DL>
108 <HR>
109
110 <P>
111 <!-- ======== NESTED CLASS SUMMARY ======== -->
112
113
114 <!-- =========== FIELD SUMMARY =========== -->
115
116
117 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
118
119
120 <!-- ========== METHOD SUMMARY =========== -->
121
122 <A NAME="method_summary"><!-- --></A>
123 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
124 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
125 <TD COLSPAN=2><FONT SIZE="+2">
126 <B>Method Summary</B></FONT></TD>
127 </TR>
128 <TR BGCOLOR="white" CLASS="TableRowColor">
129 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
130 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html" title="class or interface in java.util">Calendar</A></CODE></FONT></TD>
131 <TD><CODE><B><A HREF="../../../org/jempbox/impl/DateConverter.html#toCalendar(java.lang.String)">toCalendar</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;date)</CODE>
132
133 <BR>
134 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This will convert a string to a calendar.</TD>
135 </TR>
136 <TR BGCOLOR="white" CLASS="TableRowColor">
137 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
139 <TD><CODE><B><A HREF="../../../org/jempbox/impl/DateConverter.html#toISO8601(java.util.Calendar)">toISO8601</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html" title="class or interface in java.util">Calendar</A>&nbsp;cal)</CODE>
140
141 <BR>
142 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert the date to iso 8601 string format.</TD>
143 </TR>
144 <TR BGCOLOR="white" CLASS="TableRowColor">
145 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
147 <TD><CODE><B><A HREF="../../../org/jempbox/impl/DateConverter.html#toString(java.util.Calendar)">toString</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html" title="class or interface in java.util">Calendar</A>&nbsp;date)</CODE>
148
149 <BR>
150 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This will convert the calendar to a string.</TD>
151 </TR>
152 </TABLE>
153 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
154 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
155 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
156 <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
157 </TR>
158 <TR BGCOLOR="white" CLASS="TableRowColor">
159 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
160 </TR>
161 </TABLE>
162 &nbsp;
163 <P>
164
165 <!-- ============ FIELD DETAIL =========== -->
166
167
168 <!-- ========= CONSTRUCTOR DETAIL ======== -->
169
170
171 <!-- ============ METHOD DETAIL ========== -->
172
173 <A NAME="method_detail"><!-- --></A>
174 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
175 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
176 <TD COLSPAN=1><FONT SIZE="+2">
177 <B>Method Detail</B></FONT></TD>
178 </TR>
179 </TABLE>
180
181 <A NAME="toString(java.util.Calendar)"><!-- --></A><H3>
182 toString</H3>
183 <PRE>
184 public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html" title="class or interface in java.util">Calendar</A>&nbsp;date)</PRE>
185 <DL>
186 <DD>This will convert the calendar to a string.
187 <P>
188 <DD><DL>
189 <DT><B>Parameters:</B><DD><CODE>date</CODE> - The date to convert to a string.
190 <DT><B>Returns:</B><DD>The date as a String to be used in a PDF document.</DL>
191 </DD>
192 </DL>
193 <HR>
194
195 <A NAME="toCalendar(java.lang.String)"><!-- --></A><H3>
196 toCalendar</H3>
197 <PRE>
198 public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html" title="class or interface in java.util">Calendar</A> <B>toCalendar</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;date)
199 throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
200 <DL>
201 <DD>This will convert a string to a calendar.
202 <P>
203 <DD><DL>
204 <DT><B>Parameters:</B><DD><CODE>date</CODE> - The string representation of the calendar.
205 <DT><B>Returns:</B><DD>The calendar that this string represents.
206 <DT><B>Throws:</B>
207 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If the date string is not in the correct format.</DL>
208 </DD>
209 </DL>
210 <HR>
211
212 <A NAME="toISO8601(java.util.Calendar)"><!-- --></A><H3>
213 toISO8601</H3>
214 <PRE>
215 public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toISO8601</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html" title="class or interface in java.util">Calendar</A>&nbsp;cal)</PRE>
216 <DL>
217 <DD>Convert the date to iso 8601 string format.
218 <P>
219 <DD><DL>
220 <DT><B>Parameters:</B><DD><CODE>cal</CODE> - The date to convert.
221 <DT><B>Returns:</B><DD>The date represented as an ISO 8601 string.</DL>
222 </DD>
223 </DL>
224 <!-- ========= END OF CLASS DATA ========= -->
225 <HR>
226
227
228 <!-- ======= START OF BOTTOM NAVBAR ====== -->
229 <A NAME="navbar_bottom"><!-- --></A>
230 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
231 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
232 <TR>
233 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
234 <A NAME="navbar_bottom_firstrow"><!-- --></A>
235 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
236 <TR ALIGN="center" VALIGN="top">
237 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
238 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
239 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
240 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DateConverter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
241 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
242 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
243 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
244 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
245 </TR>
246 </TABLE>
247 </TD>
248 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
249 </EM>
250 </TD>
251 </TR>
252
253 <TR>
254 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
255 &nbsp;PREV CLASS&nbsp;
256 &nbsp;<A HREF="../../../org/jempbox/impl/XMLUtil.html" title="class in org.jempbox.impl"><B>NEXT CLASS</B></A></FONT></TD>
257 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
258 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
259 &nbsp;<A HREF="DateConverter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
260 &nbsp;<SCRIPT type="text/javascript">
261 <!--
262 if(window==top) {
263 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
264 }
265 //-->
266 </SCRIPT>
267 <NOSCRIPT>
268 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
269 </NOSCRIPT>
270
271 </FONT></TD>
272 </TR>
273 <TR>
274 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
275 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
276 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
277 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
278 </TR>
279 </TABLE>
280 <A NAME="skip-navbar_bottom"></A>
281 <!-- ======== END OF BOTTOM NAVBAR ======= -->
282
283 <HR>
284
285 </BODY>
286 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26