com.github.abrarsyed.jastyle
Class FormatterHelper

java.lang.Object
  extended by com.github.abrarsyed.jastyle.FormatterHelper

public class FormatterHelper
extends java.lang.Object


Constructor Summary
FormatterHelper()
           
 
Method Summary
static java.lang.String format(java.io.Reader in, ASFormatter formatter)
          Returns the formatted version of the source code
static void format(java.io.Reader in, ASFormatter formatter, java.io.Writer writer)
          Returns the formatted version of the source code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatterHelper

public FormatterHelper()
Method Detail

format

public static java.lang.String format(java.io.Reader in,
                                      ASFormatter formatter)
Returns the formatted version of the source code

Parameters:
in - The reader of the original source code (this reader will be closed)
formatter - The formatter to use
Returns:
String

format

public static void format(java.io.Reader in,
                          ASFormatter formatter,
                          java.io.Writer writer)
Returns the formatted version of the source code

Parameters:
in - The reader of the original source code (this reader will be closed)
formatter - The formatter to use
writer - The writer where thw output will be written