org.apache.ibatis.abator.api.dom
Class OutputUtilities

java.lang.Object
  extended by org.apache.ibatis.abator.api.dom.OutputUtilities

public class OutputUtilities
extends java.lang.Object

Author:
Jeff Butler

Method Summary
static void javaIndent(java.lang.StringBuffer sb, int indentLevel)
          Utility method that indents the buffer by the default amount for Java (four spaces per indent level).
static void newLine(java.lang.StringBuffer sb)
          Utility method.
static void xmlIndent(java.lang.StringBuffer sb, int indentLevel)
          Utility method that indents the buffer by the default amount for XML (two spaces per indent level).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

javaIndent

public static void javaIndent(java.lang.StringBuffer sb,
                              int indentLevel)
Utility method that indents the buffer by the default amount for Java (four spaces per indent level).

Parameters:
sb - a StringBuffer to append to
indentLevel - the required indent level

xmlIndent

public static void xmlIndent(java.lang.StringBuffer sb,
                             int indentLevel)
Utility method that indents the buffer by the default amount for XML (two spaces per indent level).

Parameters:
sb - a StringBuffer to append to
indentLevel - the required indent level

newLine

public static void newLine(java.lang.StringBuffer sb)
Utility method. Adds a newline character to a StringBuffer.

Parameters:
sb - the StringBuffer to be appended to