org.apache.cocoon.components.language.programming
Interface CodeFormatter
- All Known Implementing Classes:
- NullFormatter, JstyleFormatter
- public interface CodeFormatter
This interface defines source beautifying formatting
- Version:
- CVS $Id: CodeFormatter.java,v 1.5 2002/02/22 07:00:09 cziegeler Exp $
- Author:
- Ricardo Rocha
Method Summary |
java.lang.String |
format(java.lang.String code,
java.lang.String encoding)
Format and beautify a String containing source code |
format
public java.lang.String format(java.lang.String code,
java.lang.String encoding)
- Format and beautify a
String
containing source code
- Parameters:
code
- The input source codeencoding
- 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.