Package edu.harvard.hul.ois.fits.exceptions

Examples of edu.harvard.hul.ois.fits.exceptions.FitsException


      File inputFile = new File(input);
     
      if(inputFile.isDirectory()) {
        String outputDir = cmd.getOptionValue("o");
        if(outputDir == null || !(new File(outputDir).isDirectory())) {
          throw new FitsException("When FITS is run in directory processing mode the output location must be a diretory");
        }
        fits.doDirectory(inputFile,new File(outputDir),cmd.hasOption("x"),cmd.hasOption("xc"));
      }
      else {
        FitsOutput result = fits.doSingleFile(inputFile);
View Full Code Here


      }
      else if(!dirMode) {   
        out = System.out;
      }
      else {
        throw new FitsException("The output location must be provided when running FITS in directory mode");
      }
     
      //if -x is set, then convert to standard metadata schema and output to -o
      if(standardSchema) {
        outputStandardSchemaXml(result,out);
View Full Code Here

          stdElement.addContent(stdXmlDoc.getRootElement().detach());
          techmd.addContent(stdElement);
         
        }
        catch(JDOMException e) {
          throw new FitsException("error converting standard XML", e);
        }
      }
    }
    }
View Full Code Here

TOP

Related Classes of edu.harvard.hul.ois.fits.exceptions.FitsException

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.