net.sf.jmatchparser.template
Class ChainedFormatter

java.lang.Object
  extended by net.sf.jmatchparser.template.ChainedFormatter
All Implemented Interfaces:
Formatter

public class ChainedFormatter
extends Object
implements Formatter

A formatter that calls multiple formatters in sequence.


Constructor Summary
ChainedFormatter(String name, Formatter... formatters)
          Create a new chained formatter.
 
Method Summary
 String format(String content, PrintStream debugStream)
          Format the content and return the formatted content.
 String getName()
          Get the name of this formatter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedFormatter

public ChainedFormatter(String name,
                        Formatter... formatters)
Create a new chained formatter.

Parameters:
name - Name of the formatter
formatters - Formatters to call
Method Detail

getName

public String getName()
Description copied from interface: Formatter
Get the name of this formatter

Specified by:
getName in interface Formatter

format

public String format(String content,
                     PrintStream debugStream)
              throws IOException
Description copied from interface: Formatter
Format the content and return the formatted content.

Specified by:
format in interface Formatter
Throws:
IOException


Copyright © 2011. All Rights Reserved.