|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.steadystate.css.util.Output
public final class Output
A simple helper to write formated to a writer.
| Constructor Summary | |
|---|---|
Output(Writer aWriter,
String anIndent)
Constructor. |
|
| Method Summary | |
|---|---|
Output |
flush()
Flushes the output. |
Output |
indent()
Indent the following. |
Output |
print(char aChar)
Write the char. |
Output |
print(String aString)
Write the String. |
Output |
println()
Start a newline. |
Output |
println(String aString)
Write the string on a new line. |
Output |
unindent()
Clear the indent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Output(Writer aWriter,
String anIndent)
aWriter - the writer to write toanIndent - String to be used for indenting (e.g. "", " ", " ", "\t")| Method Detail |
|---|
public Output print(char aChar)
throws IOException
aChar - the char to be written
IOException - in case of problems
public Output print(String aString)
throws IOException
aString - the string to be written
IOException - in case of problems
public Output println(String aString)
throws IOException
aString - the string to be written
IOException - in case of problems
public Output println()
throws IOException
IOException - in case of problems
public Output flush()
throws IOException
IOException - in case of errorpublic Output indent()
public Output unindent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||