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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Ricardo Rocha

Method Summary
 String format(String code, String encoding)
          Format and beautify a String containing source code
 

Method Detail

format

String format(String code,
              String encoding)
Format and beautify a String containing source code

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-2010 The Apache Software Foundation. All Rights Reserved.