gov.nasa.pds.vtool.handler
Class HandlerFactory

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

public class HandlerFactory
extends java.lang.Object


Method Summary
static HandlerFactory getInstance()
           
 java.util.logging.Handler newInstance(java.io.File reportFile, java.lang.String reportStyle, 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
 

Method Detail

getInstance

public static HandlerFactory getInstance()

newInstance

public java.util.logging.Handler newInstance(java.io.File reportFile,
                                             java.lang.String reportStyle,
                                             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:
reportFile - Specify a file name or set to 'null' to write to standard out.
reportStyle - Specify the report view. Must be set to 'full', 'min', or 'sum'.
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-2009 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.