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

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

public class OutputUtilities
extends java.lang.Object

Author:
Jeff Butler

Method Summary
static void javaIndent(java.lang.StringBuilder 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.StringBuilder sb)
          Utility method.
static void xmlIndent(java.lang.StringBuilder 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.StringBuilder sb,
                              int indentLevel)
Utility method that indents the buffer by the default amount for Java (four spaces per indent level).

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

xmlIndent

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

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

newLine

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

Parameters:
sb - the StringBuilder to be appended to