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, writewritepublic IndentablePrintStream(OutputStream out)
out - the desired OutputStreampublic abstract IndentablePrintStream printIndent(String s)
IndentableprintIndent in interface Indentables - the string to be printedpublic abstract IndentablePrintStream printIndentln(String s)
IndentableprintIndentln in interface Indentables - the string to be printedpublic abstract IndentablePrintStream printIndentString()
IndentableprintIndentString in interface Indentablepublic abstract Indentable printfIndentln(String format, Object... args)
IndentableprintfIndentln in interface Indentableformat - the format stringargs - the to be printed argumentsCopyright © 2014. All rights reserved.