Interface RenderingTarget

All Known Implementing Classes:
AbstractRenderingTarget, RenderingTargetCollectingImpl, RenderingTargetStreamImpl

public interface RenderingTarget
Abstraction over the target of rendering (streams, buffers, ...).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a newline.
    void
    Adds the string, preceded by any necessary indentation, followed by a newline.
    void
    addLine(String pattern, Object... args)
    Adds the rendered pattern, preceded by any necessary indentation, followed by a newline.
    void
    indent(int depth)
    Increase the indentation by the given factor.
    void
    unindent(int depth)
    Decrease the indentation by the given factor.
  • Method Details

    • addLine

      void addLine(String line)
      Adds the string, preceded by any necessary indentation, followed by a newline.
      See Also:
    • addLine

      void addLine(String pattern, Object... args)
      Adds the rendered pattern, preceded by any necessary indentation, followed by a newline.
      See Also:
    • addLine

      void addLine()
      Adds a newline.
    • indent

      void indent(int depth)
      Increase the indentation by the given factor.
      API Note:
      Indentation depth is constant and controlled by the target itself. depth here indicates the number of indentations by which to increase.
    • unindent

      void unindent(int depth)
      Decrease the indentation by the given factor.
      API Note:
      Indentation depth is constant and controlled by the target itself. depth here indicates the number of indentations by which to decrease.