org.apache.cocoon.components.language.programming
Interface CodeFormatter
- All Known Implementing Classes:
- NullFormatter
public interface CodeFormatter
This interface defines source beautifying formatting
- Version:
- CVS $Id: CodeFormatter.java 433543 2006-08-22 06:22:54Z crossley $
- Author:
- Ricardo Rocha
format
String format(String code,
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-2007 The Apache Software Foundation. All Rights Reserved.