org.apache.cocoon.components.language.programming.java
Class NullFormatter
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullFormatter
public NullFormatter()
format
public String format(String code,
String encoding)
- This is a dummy
CodeFormatter
- Specified by:
format
in interface CodeFormatter
- Parameters:
code
- The input source codeencoding
- 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.