|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.pdfbox.util.DateConverter
This class is used to convert dates to strings and back using the PDF date standards. Date are described in PDFReference1.4 section 3.8.2
| Constructor Summary | |
DateConverter()
|
|
| Method Summary | |
Calendar |
toCalendar(String date)
This will convert a string to a calendar. |
String |
toISO8601(Calendar cal)
Convert the date to iso 8601 string format. |
String |
toString(Calendar date)
This will convert the calendar to a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DateConverter()
| Method Detail |
public String toString(Calendar date)
date - The date to convert to a string.
public Calendar toCalendar(String date)
throws IOException
date - The string representation of the calendar.
IOException - If the date string is not in the correct format.public String toISO8601(Calendar cal)
cal - The date to convert.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||