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.html,v 1.2 2003/07/10 13:52:54 vgritsenko 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-2003 Apache Software Foundation. All Rights Reserved.