Class StringPrinter

java.lang.Object
org.apache.camel.dsl.jbang.core.common.StringPrinter
All Implemented Interfaces:
Printer

public class StringPrinter extends Object implements Printer
  • Constructor Details

    • StringPrinter

      public StringPrinter()
  • Method Details

    • println

      public void println()
      Specified by:
      println in interface Printer
    • println

      public void println(String line)
      Specified by:
      println in interface Printer
    • print

      public void print(String output)
      Specified by:
      print in interface Printer
    • printf

      public void printf(String format, Object... args)
      Specified by:
      printf in interface Printer
    • getOutput

      public String getOutput()
      Provides access to the cached output.
      Returns:
    • getLines

      public List<String> getLines() throws IOException
      Provides access to all lines of the cached output.
      Returns:
      Throws:
      IOException