Interface Indentable
-
- All Known Implementing Classes:
IndentablePrintStream,NullPrintStream,TracePrintStream
public interface IndentableThis interface defines the methodsIndentablePrintStreams must implement.- Author:
- Christof Reichardt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IndentableprintfIndentln(String format, Object... args)A convenience method to print an indented string onto the stream using the specified format string and the given arguments.IndentableprintIndent(String s)Prints an indented string.IndentableprintIndentln(String s)Prints an indented string together with a line feed.IndentableprintIndentString()Prints only the current indentation.
-
-
-
Method Detail
-
printIndent
Indentable printIndent(String s)
Prints an indented string.- Parameters:
s- the string to be printed- Returns:
- the indentable stream itself
-
printIndentln
Indentable printIndentln(String s)
Prints an indented string together with a line feed.- Parameters:
s- the string to be printed- Returns:
- the indentable stream itself
-
printfIndentln
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.- 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
-
-