com.claritysys.jvm.disassembler
Class IndentingWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
com.claritysys.jvm.disassembler.IndentingWriter
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
public class IndentingWriter
- extends java.io.FilterWriter
| Fields inherited from class java.io.FilterWriter |
out |
| Fields inherited from class java.io.Writer |
lock |
|
Constructor Summary |
IndentingWriter(java.io.Writer writer)
Create a new indenting writer to write to the given PrintWriter. |
|
Method Summary |
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. |
| Methods inherited from class java.io.FilterWriter |
close, flush, write, write, write |
| Methods inherited from class java.io.Writer |
append, append, append, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndentingWriter
public IndentingWriter(java.io.Writer writer)
- Create a new indenting writer to write to the given PrintWriter.
println
public void println(java.lang.String s)
- Output to the writer at the current indentation level.
- Parameters:
s - The String to print - indentation is printed first.
print
public void print(java.lang.String s)
- Output to the writer at the current indentation level.
- Parameters:
s - The String to print - indentation is printed first.
println
public void println()
- Write a blank line.
getError
public java.lang.Exception getError()
hasError
public boolean hasError()
indent
public void indent(int i)
- Change the indent level by the specified amount.
- Parameters:
i - The amount to add/subtract to the current indent level.
Copyright ? 2000-2003 Clarity Systems Group, LLC. All Rights Reserved.