|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.util.IndentPrinter
class IndentPrinter extends Object
A helper class for printing indented text.
Constructor Summary | |
IndentPrinter()
Creates a PrintWriter pointing to System.out, with an indent of two spaces. |
|
IndentPrinter(PrintWriter out)
Create an IndentPrinter to the given PrintWriter, with an indent of two spaces. |
|
IndentPrinter(PrintWriter out, String indent)
Create an IndentPrinter to the given PrintWriter |
|
IndentPrinter(PrintWriter out, String indent, boolean addNewlines)
|
Method Summary | |
---|---|
void
|
decrementIndent()
|
void
|
flush()
|
int
|
getIndentLevel()
|
void
|
incrementIndent()
|
void
|
print(String text)
|
void
|
print(char c)
|
void
|
printIndent()
|
void
|
println(String text)
|
void
|
println()
|
void
|
setIndentLevel(int indentLevel)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
public IndentPrinter()
public IndentPrinter(PrintWriter out)
public IndentPrinter(PrintWriter out, String indent)
public IndentPrinter(PrintWriter out, String indent, boolean addNewlines)
Method Detail |
---|
public void decrementIndent()
public void flush()
public int getIndentLevel()
public void incrementIndent()
public void print(String text)
public void print(char c)
public void printIndent()
public void println(String text)
public void println()
public void setIndentLevel(int indentLevel)
Copyright © 2003-2009 The Codehaus. All rights reserved.