gov.nasa.pds.citool.handler
Class HandlerFactory
java.lang.Object
gov.nasa.pds.citool.handler.HandlerFactory
public class HandlerFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPARE
public static final int COMPARE
- See Also:
- Constant Field Values
INGEST
public static final int INGEST
- See Also:
- Constant Field Values
VALIDATE
public static final int VALIDATE
- See Also:
- Constant Field Values
getInstance
public static HandlerFactory getInstance()
newInstance
public Handler newInstance(int mode,
File reportFile,
String severity)
throws SecurityException,
IOException,
UnknownHandlerConfigurationException
- Get an instance of a Handler object for the human-readable report.
- Parameters:
mode
- Specify a logging mode (COMPARE=1, INGEST=2)reportFile
- Specify a file name or set to 'null' to write to standard out.severity
- Specify the severity level and above for the reporting. Must be set
to 'Info', 'Warning', or 'Error'.
- Returns:
- A proper Handler object based on the input parameters.
- Throws:
SecurityException
IOException
UnknownHandlerConfigurationException
Copyright © 2010–2015 Planetary Data System. All rights reserved.