Package nl.siegmann.epublib.domain

Examples of nl.siegmann.epublib.domain.Date


  private static List<Date> readDates(Element metadataElement) {
    NodeList elements = metadataElement.getElementsByTagNameNS(NAMESPACE_DUBLIN_CORE, DCTags.date);
    List<Date> result = new ArrayList<Date>(elements.getLength());
    for(int i = 0; i < elements.getLength(); i++) {
      Element dateElement = (Element) elements.item(i);
      Date date;
      try {
        date = new Date(DOMUtil.getTextChildrenContent(dateElement), dateElement.getAttributeNS(NAMESPACE_OPF, OPFAttributes.event));
        result.add(date);
      } catch(IllegalArgumentException e) {
        log.error(e.getMessage());
      }
    }
View Full Code Here

TOP

Related Classes of nl.siegmann.epublib.domain.Date

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.