public class PDFDateParser
extends java.lang.Object
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.
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
parseDateString(java.lang.String pdfDate)
Parses the provided PDF-format date string into a java.util.Date instance.
|
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.