Package org.freeplane.features.mode

Examples of org.freeplane.features.mode.PersistentNodeHook$XmlReader


   
    if (pbf) {
      reader = new crosby.binary.osmosis.OsmosisReader(
          new FileInputStream(file));
    } else {
      reader = new XmlReader(file, false, compression);
    }
   
    return reader;
   
  }
View Full Code Here


    }
  };
 
  public OSMFileDataSource(File file) throws IOException {
   
    XmlReader reader = new XmlReader(file, false, CompressionMethod.None);
    reader.setSink(sinkImplementation);
   
    Thread readerThread = new Thread(reader);
    readerThread.start();
   
    while (readerThread.isAlive()) {
View Full Code Here

    // change contains deletes which have a current timestamp
    // that cannot be reliably predicted.
    // Therefore, check all relevant attributes manually.
   
    ChangeDeriver deriver = new ChangeDeriver(1);
    RunnableSource left = new XmlReader(dataUtils.createDataFile(
        "v0_6/derive_change/simple.osm"), true, CompressionMethod.None);
    RunnableSource right = new EmptyReader();
   
    SinkChangeInspector result = RunTaskUtilities.run(deriver, left, right);
    List<ChangeContainer> changes = result.getProcessedChanges();
View Full Code Here

   *
   */
  private void mergeAndLookForException(File sourceFile, String exceptionMessagePrefix) throws Exception {
    final List<Throwable> exceptions = Collections.synchronizedList(new ArrayList<Throwable>());
   
    XmlReader reader = new XmlReader(sourceFile, false, CompressionMethod.None);

    EntityMerger merger = new EntityMerger(
        ConflictResolutionMethod.LatestSource, 1, BoundRemovedAction.Ignore);

    RunTaskUtilities.run(merger, reader, new EmptyReader(), new Thread.UncaughtExceptionHandler() {
View Full Code Here

TOP

Related Classes of org.freeplane.features.mode.PersistentNodeHook$XmlReader

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.