|
Groovy 1.7.5 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.util.IndentPrinter
public 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)
@todo temporary hack |
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)
out
- PrintWriter to output to
public IndentPrinter(PrintWriter out, String indent)
out
- PrintWriter to output toindent
- character(s) used to indent each line
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-2010 The Codehaus. All rights reserved.