org.quattor.pan.output
Class FormatterUtils

java.lang.Object
  extended by org.quattor.pan.output.FormatterUtils

public class FormatterUtils
extends java.lang.Object


Constructor Summary
FormatterUtils()
           
 
Method Summary
static Formatter getDefaultFormatterInstance()
          This method returns the default formatter to use if the user does not specify one explicitly.
static Formatter getFormatterInstance(java.lang.String name)
          This method maps a formatter name to a Formatter instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatterUtils

public FormatterUtils()
Method Detail

getFormatterInstance

public static Formatter getFormatterInstance(java.lang.String name)
This method maps a formatter name to a Formatter instance. If the formatter name is unknown, then null will be returned. The name comparison ignores the case of the given name.

Parameters:
name - name of the formatter
Returns:
Formatter instance corresponding to the name or null if the formatter name is unknown

getDefaultFormatterInstance

public static Formatter getDefaultFormatterInstance()
This method returns the default formatter to use if the user does not specify one explicitly.

Returns:
default Formatter for output files


Copyright © 2011 Quattor. All Rights Reserved.