public final class Output extends Object
Constructor and Description |
---|
Output(Writer aWriter,
String anIndent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Output print(char aChar) throws IOException
aChar
- the char to be writtenIOException
- in case of problemspublic Output print(String aString) throws IOException
aString
- the string to be writtenIOException
- in case of problemspublic Output println(String aString) throws IOException
aString
- the string to be writtenIOException
- in case of problemspublic Output println() throws IOException
IOException
- in case of problemspublic Output flush() throws IOException
IOException
- in case of errorpublic Output indent()
public Output unindent()
Copyright © 1999–2022. All rights reserved.