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

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.language.programming.java.NullFormatter
All Implemented Interfaces:
CodeFormatter, org.apache.avalon.framework.logger.Loggable

public class NullFormatter
extends org.apache.avalon.framework.logger.AbstractLoggable
implements CodeFormatter

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

Version:
CVS $Id: NullFormatter.java,v 1.4 2002/02/22 07:00:09 cziegeler Exp $
Author:
Giacomo Pati

Constructor Summary
NullFormatter()
           
 
Method Summary
 java.lang.String format(java.lang.String code, java.lang.String encoding)
          This is a dummy CodeFormatter
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, 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 java.lang.String format(java.lang.String code,
                               java.lang.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-2002 Apache Software Foundation. All Rights Reserved.