Package nz.govt.natlib.meta.ui

Examples of nz.govt.natlib.meta.ui.PropsManager


      Configuration c = Config.getInstance().getConfiguration("Extract in Native form");
     
      // Harvest the file. Note that the output is sent to a file as
      // specified in the configuration. This class produces very little
      // in the way of direct output.
      c.getHarvester().harvest(c, source, new PropsManager());
     
      // Get the NLNZ Data Dictionary configuration.
      c = Config.getInstance().getConfiguration("NLNZ Data Dictionary");
     
      // Harvest the file. Note that the output is sent to a file as
      // specified in the configuration. This class produces very little
      // in the way of direct output.
      c.getHarvester().harvest(c, source, new PropsManager());
     
      System.out.println("Harvest Completed Successfully");
    }
    catch(ConfigurationException ex) {
      // Exception initialising the harvester.
View Full Code Here


            /* Get the native Configuration: */
            Configuration c = Config.getInstance().getConfiguration("Extract in Native form");
            String tempFolder = file.getParent();
            c.setOutputDirectory(tempFolder);
            /* Harvest the file: */
            c.getHarvester().harvest(c, source, new PropsManager());
            /* The resulting file is the original file plus ".xml": */
            File result = new File(c.getOutputDirectory() + File.separator + file.getName()
                    + ".xml");
            result.deleteOnExit();
            return read(result.getAbsolutePath());
View Full Code Here

TOP

Related Classes of nz.govt.natlib.meta.ui.PropsManager

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.