Package org.openstreetmap.osmosis.core.time

Examples of org.openstreetmap.osmosis.core.time.DateParser


  /**
   * {@inheritDoc}
   */
  @Override
  public Date parseTimestamp(String timestamp) {
    DateParser dateParser;
   
    dateParser = dateParserStore.get();
    if (dateParser == null) {
      dateParser = new DateParser();
      dateParserStore.set(dateParser);
    }
   
    return dateParser.parse(timestamp);
  }
View Full Code Here


   */
  public IntervalDownloader(String taskId, File workingDirectory) {
    this.taskId = taskId;
    this.workingDirectory = workingDirectory;
   
    dateParser = new DateParser();
  }
View Full Code Here

   *
   * @param properties
   *            The properties to be read.
   */
  public void load(Map<String, String> properties) {
    timestamp = new DateParser().parse(loadProperty(properties, "timestamp"));
    sequenceNumber = Long.parseLong(loadProperty(properties, "sequenceNumber"));
  }
View Full Code Here

   */
  public TimestampTracker(File timestampFile, File newTimestampFile) {
    this.timestampFile = timestampFile;
    this.newTimestampFile = newTimestampFile;
   
    dateParser = new DateParser();
    dateFormatter = new DateFormatter();
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.core.time.DateParser

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.