gov.nasa.pds.tools.label
Class DateTimeFormatter
java.lang.Object
gov.nasa.pds.tools.label.DateTimeFormatter
public class DateTimeFormatter
- extends java.lang.Object
- Version:
- $Revision: 4967 $
- Author:
- pramirez, jagander
Method Summary |
protected static void |
checkComponent(Label label,
java.lang.String component,
int minLength,
int maxLength,
java.lang.String key,
int lineNumber)
|
protected static void |
checkComponents(Label label,
java.lang.String dateTime,
int lineNumber)
|
protected static void |
checkDateComponents(Label label,
java.lang.String dateStr,
int lineNumber)
|
protected static void |
checkTimeComponents(Label label,
java.lang.String timeStr,
int lineNumber)
|
protected static java.util.Date |
lenientParse(Label label,
java.lang.String dateTime,
int lineNumber)
|
static java.util.Date |
parse(Label label,
java.lang.String dateTime,
int lineNumber)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateTimeFormatter
public DateTimeFormatter()
parse
public static java.util.Date parse(Label label,
java.lang.String dateTime,
int lineNumber)
throws LabelParserException
- Throws:
LabelParserException
lenientParse
protected static java.util.Date lenientParse(Label label,
java.lang.String dateTime,
int lineNumber)
throws LabelParserException
- Throws:
LabelParserException
checkComponents
protected static void checkComponents(Label label,
java.lang.String dateTime,
int lineNumber)
throws LabelParserException
- Throws:
LabelParserException
checkDateComponents
protected static void checkDateComponents(Label label,
java.lang.String dateStr,
int lineNumber)
throws LabelParserException
- Throws:
LabelParserException
checkComponent
protected static void checkComponent(Label label,
java.lang.String component,
int minLength,
int maxLength,
java.lang.String key,
int lineNumber)
throws LabelParserException
- Throws:
LabelParserException
checkTimeComponents
protected static void checkTimeComponents(Label label,
java.lang.String timeStr,
int lineNumber)
throws LabelParserException
- Throws:
LabelParserException
Copyright © 2005-2009 Planetary Data System. All Rights Reserved.