|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.util.text.Indenter
public class Indenter
This class provides basic functionality related to writing out the type of indentation you see in source code.
Constructor Summary | |
---|---|
Indenter()
|
Method Summary | |
---|---|
protected void |
indent(int indentLevel,
Writer writer)
Write an indent to a Writer. |
static String |
indent(String string,
int indentLevel)
Write an indent to a string. |
static void |
indentBuffer(StringBuffer buffer,
int indentLevel)
Write an indent to a StringBuffer. |
static void |
indentBuilder(StringBuilder builder,
int indentLevel)
Write an indent to a StringBuilder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Indenter()
Method Detail |
---|
public static void indentBuffer(StringBuffer buffer, int indentLevel)
Write an indent to a StringBuffer.
buffer
- - the StringBuffer to which the tabs are written.indentLevel
- - the number of "tabs" to indentpublic static void indentBuilder(StringBuilder builder, int indentLevel)
Write an indent to a StringBuilder.
builder
- - the StringBuilder to which the tabs are written.indentLevel
- - the number of "tabs" to indentpublic static String indent(String string, int indentLevel)
Write an indent to a string.
string
- - the string to which the tabs are written.indentLevel
- - the number of "tabs" to indent
protected void indent(int indentLevel, Writer writer) throws IOException
Write an indent to a Writer.
indentLevel
- - the number of "tabs" to indentwriter
- - the Writer to which the tabs are written.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |