Package nz.govt.natlib.meta

Examples of nz.govt.natlib.meta.Harvester$DefaultProgressListener


    String harvesterClass = config.getClassName();
    if (harvesterClass != null) {
      try {
        LogManager.getInstance().logMessage(
            LogMessage.WORTHLESS_CHATTER, "Harvesting files");
        Harvester harvester = (Harvester) Class.forName(harvesterClass)
            .newInstance();
        // go to it...
        LogManager.getInstance().logMessage(
            LogMessage.WORTHLESS_CHATTER,
            "Using :" + harvester.getClass().getName());
        harvester.harvest(config, source, props,
            new HarvestProgressListener());
        LogManager.getInstance().logMessage(
            LogMessage.WORTHLESS_CHATTER, "Harvesting complete");
      } catch (Exception ex) {
        LogMessage msg = new LogMessage(LogMessage.ERROR, ex, ex
View Full Code Here


        public void focusLost(FocusEvent fe) {
          String har = configClass.getText();
          String outDTD = "";
          if ((har != null) && (har.length() > 0)) {
            try {
              Harvester h = (Harvester) Class.forName(har)
                  .newInstance();
              if (h.getOutputType() != null) {
                outDTD = h.getOutputType();
              } else {
                outDTD = "NONE";
              }
            } catch (InstantiationException e) {
              outDTD = "CLASS ERROR";
View Full Code Here

      File outDir = new File(config.getOutputDirectory());
      outDir.mkdirs(); // precaution, in case the directories are not
                // there on this machine...
      System.out.println("Output: " + outDir.getAbsolutePath());

      Harvester harvester = new POCHarvester();
      Timer.start("adapter.handle");
      harvester.harvest(config, new FileWrapper(file), null, null);
      Timer.end("adapter.handle");
    }

    Timer.report();
  }
View Full Code Here

TOP

Related Classes of nz.govt.natlib.meta.Harvester$DefaultProgressListener

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.