Package org.rundeck.client.tool.format
Class PrefixFormatter
- java.lang.Object
-
- org.rundeck.client.tool.format.PrefixFormatter
-
- All Implemented Interfaces:
OutputFormatter
public class PrefixFormatter extends java.lang.Object implements OutputFormatter
-
-
Constructor Summary
Constructors Constructor Description PrefixFormatter(java.lang.String prefix)PrefixFormatter(java.lang.String prefix, OutputFormatter base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringformat(java.lang.Object o)booleanisTruncateFinalNewline()voidsetTruncateFinalNewline(boolean truncateFinalNewline)OutputFormatterwithBase(OutputFormatter base)
-
-
-
Constructor Detail
-
PrefixFormatter
public PrefixFormatter(java.lang.String prefix)
-
PrefixFormatter
public PrefixFormatter(java.lang.String prefix, OutputFormatter base)
-
-
Method Detail
-
format
public java.lang.String format(java.lang.Object o)
- Specified by:
formatin interfaceOutputFormatter
-
withBase
public OutputFormatter withBase(OutputFormatter base)
- Specified by:
withBasein interfaceOutputFormatter
-
isTruncateFinalNewline
public boolean isTruncateFinalNewline()
-
setTruncateFinalNewline
public void setTruncateFinalNewline(boolean truncateFinalNewline)
-
-