org.apache.cocoon.components.language.programming.java
Class NullFormatter

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.language.programming.java.NullFormatter
All Implemented Interfaces:
CodeFormatter, LogEnabled

public class NullFormatter
extends AbstractLogEnabled
implements CodeFormatter

This class implements CodeFormatter. This implementation doesn't do anything but returning the passed code as is.

Version:
CVS $Id: NullFormatter.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Giacomo Pati

Constructor Summary
NullFormatter()
           
 
Method Summary
 String format(String code, String encoding)
          This is a dummy CodeFormatter
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullFormatter

public NullFormatter()
Method Detail

format

public String format(String code,
                     String encoding)
This is a dummy CodeFormatter

Specified by:
format in interface CodeFormatter
Parameters:
code - The input source code
encoding - The encoding used for constant strings embedded in the source code
Returns:
The formatted source code


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.