public class IlvTimeReader extends Object
Date
from a string or from an attribute of a given element.Constructor and Description |
---|
IlvTimeReader(DateFormat format)
Creates a
Date reader. |
Modifier and Type | Method and Description |
---|---|
Date |
readTime(Element elem,
String attrname,
DateFormat format)
Reads a time from the attribute of the given element.
|
Date |
readTime(String date)
Reads a time from the given string.
|
public IlvTimeReader(DateFormat format)
Date
reader.format
- The date format used to read the time.public Date readTime(Element elem, String attrname, DateFormat format) throws Exception
elem
- The element to retrieve from.attrname
- The name of the attribute (ex. "start" or "end").format
- The date format.null
if the date is not valid.Exception
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.