Package nz.govt.natlib.meta

Examples of nz.govt.natlib.meta.FileHarvestSource


      System.exit(0);
    }
   
    try {
      // Create a HarvestSource of the object we want to harvest.
      FileHarvestSource source = new FileHarvestSource(file);
     
      // Get the native Configuration.
      Configuration c = Config.getInstance().getConfiguration("Extract in Native form");
     
      // Harvest the file. Note that the output is sent to a file as
View Full Code Here


     */
    private String basicCharacteriseOneBinary(final DigitalObject digitalObject) {
        try {
            File file = DigitalObjectUtils.toFile(digitalObject);
            /* Create a HarvestSource of the object we want to harvest */
            FileHarvestSource source = new FileHarvestSource(file);
            /* Get the native Configuration: */
            Configuration c = Config.getInstance().getConfiguration("Extract in Native form");
            String tempFolder = file.getParent();
            c.setOutputDirectory(tempFolder);
            /* Harvest the file: */
 
View Full Code Here

TOP

Related Classes of nz.govt.natlib.meta.FileHarvestSource

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.