/** * The annotation create date. * * @return The date of the creation of the annotation date * * @throws IOException If there is an error converting the string to a Calendar object. */ public Calendar getCreationDate() throws IOException { return annot.getDate(COSName.CREATION_DATE); }
/** * This will get the creation date of the document. This will return null if no creation date exists. * * @return The creation date of the document. */ public Calendar getCreationDate() { return info.getDate( COSName.CREATION_DATE ); }
/** * Returns the sign date. * * @return the sign date */ public Calendar getSignDate() { return dictionary.getDate(COSName.M); }
/** * This will get the modification date of the document. This will return null if no modification date exists. * * @return The modification date of the document. */ public Calendar getModificationDate() { return info.getDate( COSName.MOD_DATE ); }
/** * This is a convenience method that will get the dictionary object that is expected to be a date. * * @param key The key to the item in the dictionary. * @param defaultValue The default value to return if the entry does not exist in the dictionary or if the date was invalid. * @return The name converted to a date. */ public Calendar getDate(COSName key, Calendar defaultValue) { Calendar retval = getDate(key); if (retval == null) { retval = defaultValue; } return retval; }
/** * This is a convenience method that will get the dictionary object that is expected to be a name and convert it to * a string. Null is returned if the entry does not exist in the dictionary or if the date was invalid. * * @param key The key to the item in the dictionary. * @return The name converted to a date. */ public Calendar getDate(String key) { return getDate(COSName.getPDFName(key)); }
/** * This is a convenience method that will get the dictionary object that is expected to be a date. * * @param key The key to the item in the dictionary. * @param defaultValue The default value to return if the entry does not exist in the dictionary or if the date was invalid. * @return The name converted to a date. */ public Calendar getDate(String key, Calendar defaultValue) { return getDate(COSName.getPDFName(key), defaultValue); }
/** * This will retrieve the date and time the annotation was created. * * @return the creation date/time. */ public Calendar getCreationDate() { return getCOSObject().getDate(COSName.CREATION_DATE); }
/** * This is a convenience method that will get the dictionary object that is expected to be a date. * * @param embedded The embedded dictionary to get. * @param key The key to the item in the dictionary. * @param defaultValue The default value to return if the entry does not exist in the dictionary or if the date was invalid. * @return The name converted to a string. */ public Calendar getEmbeddedDate(String embedded, COSName key, Calendar defaultValue) { Calendar retval = defaultValue; COSDictionary eDic = (COSDictionary) getDictionaryObject(embedded); if (eDic != null) { retval = eDic.getDate(key, defaultValue); } return retval; }
/** * The annotation create date. * * @return The date of the creation of the annotation date * * @throws IOException If there is an error converting the string to a Calendar object. */ public Calendar getCreationDate() throws IOException { return annot.getDate(COSName.CREATION_DATE); }
/** * Returns the sign date. * * @return the sign date */ public Calendar getSignDate() { return dictionary.getDate(COSName.M); }
/** * This will get the modification date of the document. This will return null if no modification date exists. * * @return The modification date of the document. */ public Calendar getModificationDate() { return info.getDate( COSName.MOD_DATE ); }
/** * Returns the sign date. * * @return the sign date */ public Calendar getSignDate() { return dictionary.getDate(COSName.M); }
/** * This will get the creation date of the document. This will return null if no creation date exists. * * @return The creation date of the document. */ public Calendar getCreationDate() { return info.getDate( COSName.CREATION_DATE ); }
/** * The annotation create date. * * @return The date of the creation of the annotation date * * @throws IOException If there is an error converting the string to a Calendar object. */ public Calendar getCreationDate() throws IOException { return annot.getDate(COSName.CREATION_DATE); }
/** * This will get the creation date of the document. This will return null if no creation date exists. * * @return The creation date of the document. */ public Calendar getCreationDate() { return info.getDate( COSName.CREATION_DATE ); }
/** * This is a convenience method that will get the dictionary object that is expected to be a name and convert it to * a string. Null is returned if the entry does not exist in the dictionary or if the date was invalid. * * @param key The key to the item in the dictionary. * @return The name converted to a date. */ public Calendar getDate(String key) { return getDate(COSName.getPDFName(key)); }
/** * This will retrieve the date and time the annotation was created. * * @return the creation date/time. * @throws IOException if there is a format problem when converting the date. */ public Calendar getCreationDate() throws IOException { return getCOSObject().getDate(COSName.CREATION_DATE); }
/** * This is a convenience method that will get the dictionary object that is expected to be a name and convert it to * a string. Null is returned if the entry does not exist in the dictionary or if the date was invalid. * * @param key The key to the item in the dictionary. * @return The name converted to a date. */ public Calendar getDate(String key) { return getDate(COSName.getPDFName(key)); }
/** * This is a convenience method that will get the dictionary object that is expected to be a date. * * @param key The key to the item in the dictionary. * @param defaultValue The default value to return if the entry does not exist in the dictionary or if the date was invalid. * @return The name converted to a date. */ public Calendar getDate(String key, Calendar defaultValue) { return getDate(COSName.getPDFName(key), defaultValue); }