Interface Indentable
- All Known Implementing Classes:
IndentablePrintStream,NullPrintStream,TracePrintStream
public interface Indentable
This interface defines the methods
IndentablePrintStreams must implement.- Author:
- Christof Reichardt
-
Method Summary
Modifier and TypeMethodDescriptionprintfIndentln(String format, Object... args) A convenience method to print an indented string onto the stream using the specified format string and the given arguments.Prints an indented string.Prints an indented string together with a line feed.Prints only the current indentation.
-
Method Details
-
printIndent
Prints an indented string.- Parameters:
s- the string to be printed- Returns:
- the indentable stream itself
-
printIndentln
Prints an indented string together with a line feed.- Parameters:
s- the string to be printed- Returns:
- the indentable stream itself
-
printfIndentln
A convenience method to print an indented string onto the stream using the specified format string and the given arguments.- Parameters:
format- the format stringargs- the to be printed arguments- Returns:
- the indentable stream itself
-
printIndentString
Indentable printIndentString()Prints only the current indentation.- Returns:
- the indentable stream itself
-