gov.nasa.pds.citool.handler
Class HandlerFactory

java.lang.Object
  extended by gov.nasa.pds.citool.handler.HandlerFactory

public class HandlerFactory
extends Object


Field Summary
static int COMPARE
           
static int INGEST
           
static int VALIDATE
           
 
Method Summary
static HandlerFactory getInstance()
           
 Handler newInstance(int mode, File reportFile, 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
 

Field Detail

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
Method Detail

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–2014 Planetary Data System. All rights reserved.