gov.nasa.pds.citool.handler
Class HandlerFactory
java.lang.Object
gov.nasa.pds.citool.handler.HandlerFactory
public class HandlerFactory
- extends java.lang.Object
Method Summary |
static HandlerFactory |
getInstance()
|
java.util.logging.Handler |
newInstance(int mode,
java.io.File reportFile,
java.lang.String severity)
Get an instance of a Handler object for the human-readable report. |
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 java.util.logging.Handler newInstance(int mode,
java.io.File reportFile,
java.lang.String severity)
throws java.lang.SecurityException,
java.io.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:
java.lang.SecurityException
java.io.IOException
UnknownHandlerConfigurationException
Copyright © 2005-2010 Planetary Data System. All Rights Reserved.