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

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

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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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-2010 The Apache Software Foundation. All Rights Reserved.