|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.util.MetadataUtils
public class MetadataUtils
This class holds handy static methods for working with DLESE metadata.
Constructor Summary | |
---|---|
MetadataUtils()
|
Method Summary | |
---|---|
static Date |
parseDate(String dateString)
Converts a String of the union.dateType or ISO8601 UTC datastamp form to a Date. |
static Date |
parseISO8601DateStamp(String datestamp)
Converts an ISO8601 UTC datastamp of the form yyyy-MM-ddTHH:mm:ssZ or the short form yyyy-MM-dd to a Java Date. |
static Date |
parseUnionDateType(String dateString)
Converts a String in a DLESE union.dateType format into a Java Date object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetadataUtils()
Method Detail |
---|
public static final Date parseUnionDateType(String dateString) throws ParseException
dateString
- A String that in one of the following four formats: YYYY-mm-dd, YYYY-mm, YYYY.
ParseException
- If unable to interpret the date String using the given format.public static final Date parseISO8601DateStamp(String datestamp) throws ParseException
datestamp
- A datestamp in UTC format.
ParseException
- If unable to interpret the datestamp.public static final Date parseDate(String dateString) throws ParseException
dateString
- A date String
ParseException
- If unable to parse the date
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |