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 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Ricardo Rocha

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

Method Detail

format

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