public class IndentingWriter
extends java.io.FilterWriter
Constructor and Description |
---|
IndentingWriter(java.io.Writer writer)
Create a new indenting writer to write to the given PrintWriter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getError() |
boolean |
hasError() |
void |
indent(int i)
Change the indent level by the specified amount.
|
void |
print(java.lang.String s)
Output to the writer at the current indentation level.
|
void |
println()
Write a blank line.
|
void |
println(java.lang.String s)
Output to the writer at the current indentation level.
|
public IndentingWriter(java.io.Writer writer)
public void println(java.lang.String s)
s
- The String to print - indentation is printed first.public void print(java.lang.String s)
s
- The String to print - indentation is printed first.public void println()
public java.lang.Exception getError()
public boolean hasError()
public void indent(int i)
i
- The amount to add/subtract to the current indent level.Copyright ? 2000-2003 Clarity Systems Group, LLC. All Rights Reserved.