Interface RockerOutput<T extends RockerOutput>

Type Parameters:
T -
All Known Implementing Classes:
AbstractRockerOutput, ArrayOfByteArraysOutput, OutputStreamOutput, StringBuilderOutput

public interface RockerOutput<T extends RockerOutput>
  • Method Details

    • getContentType

      ContentType getContentType()
    • getCharset

      Charset getCharset()
    • w

      T w(String string) throws IOException
      Writes a String to the output. Implementations are responsible for handling the conversion to the correct charset. Note that underlying implementations may be optimized to handle Strings vs. Bytes.
      Parameters:
      string - The string to write
      Returns:
      This output (so builder pattern can be used)
      Throws:
      IOException - Thrown on exception.
    • w

      T w(byte[] bytes) throws IOException
      Throws:
      IOException
    • getByteLength

      int getByteLength()
    • toString

      String toString()
      Overrides:
      toString in class Object