public abstract class IndentablePrintStream extends PrintStream implements Indentable
out
Constructor and Description |
---|
IndentablePrintStream(OutputStream out)
This constructor passes the given OutputStream to the underlying PrintStream implementation.
|
Modifier and Type | Method and Description |
---|---|
abstract Indentable |
printfIndentln(String format,
Object... args)
A convenience method to print an indented string onto the stream using the specified format string and the given arguments.
|
abstract IndentablePrintStream |
printIndent(String s)
Prints an indented string.
|
abstract IndentablePrintStream |
printIndentln(String s)
Prints an indented string together with a line feed.
|
abstract IndentablePrintStream |
printIndentString()
Prints only the current indentation.
|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write
write
public IndentablePrintStream(OutputStream out)
out
- the desired OutputStreampublic abstract IndentablePrintStream printIndent(String s)
Indentable
printIndent
in interface Indentable
s
- the string to be printedpublic abstract IndentablePrintStream printIndentln(String s)
Indentable
printIndentln
in interface Indentable
s
- the string to be printedpublic abstract IndentablePrintStream printIndentString()
Indentable
printIndentString
in interface Indentable
public abstract Indentable printfIndentln(String format, Object... args)
Indentable
printfIndentln
in interface Indentable
format
- the format stringargs
- the to be printed argumentsCopyright © 2014 Christof Reichardt. All rights reserved. (Build: 26-May-2014)