|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.snowtide.pdf.PDFDateParser
public class PDFDateParser
This class provides methods for parsing PDF-format date/time strings
into java.util.Date objects
.
Such date/time strings are typically
retrieved from a PDFTextStream instance using the PDFTextStream.getAttribute(String)
method, using the PDFTextStream.ATTR_CREATION_DATE
or
PDFTextStream.ATTR_MOD_DATE
attribute keys.
Method Summary | |
---|---|
static java.util.Date |
parseDateString(java.lang.String pdfDate)
Parses the provided PDF-format date string into a java.util.Date instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final java.util.Date parseDateString(java.lang.String pdfDate) throws java.text.ParseException
pdfDate
- - a PDF-format date string, retrieved via the getAttribute(String)
method.
java.text.ParseException
- - if the provided date string is not properly formatted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |