www.sdmetrics.com

com.sdmetrics.output
Class ExportFormatterFactory

java.lang.Object
  extended by com.sdmetrics.output.ExportFormatterFactory

public class ExportFormatterFactory
extends java.lang.Object

Knows all available file export formats by their extensions and creates formatters for them.


Constructor Summary
ExportFormatterFactory()
           
 
Method Summary
static java.util.Collection<java.lang.String> getExportFormats()
          Retrieves the file extension names of all available export formats.
static ExportFormatter getFormatter(java.lang.String format)
          Creates an export formatter for a given file extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportFormatterFactory

public ExportFormatterFactory()
Method Detail

getFormatter

public static ExportFormatter getFormatter(java.lang.String format)
Creates an export formatter for a given file extension.

Parameters:
format - Extension of the file format, for example, "txt", "csv", "html", "xml", or "ods".
Returns:
The corresponding export formatter, or null if no formatter is registered for the extension.

getExportFormats

public static java.util.Collection<java.lang.String> getExportFormats()
Retrieves the file extension names of all available export formats.

Returns:
Collection with the extension names of the available export formats, in the order in which the formats were registered.

www.sdmetrics.com