Class RockerWriterOutput

java.lang.Object
com.fizzed.rocker.runtime.AbstractRockerOutput<RockerWriterOutput>
io.micronaut.views.rocker.RockerWriterOutput
All Implemented Interfaces:
com.fizzed.rocker.RockerOutput<com.fizzed.rocker.runtime.AbstractRockerOutput>

public class RockerWriterOutput extends com.fizzed.rocker.runtime.AbstractRockerOutput<RockerWriterOutput>
Writer implementation of RockerOutput.
Since:
1.3.2
Author:
Sam Adams
  • Field Summary

    Fields inherited from class com.fizzed.rocker.runtime.AbstractRockerOutput

    byteLength, charset, contentType
  • Constructor Summary

    Constructors
    Constructor
    Description
    RockerWriterOutput(Writer writer, com.fizzed.rocker.ContentType contentType, String charsetName)
    Creates a new instance of the Rocker writer output.
    RockerWriterOutput(Writer writer, com.fizzed.rocker.ContentType contentType, Charset charset)
    Creates a new instance of the Rocker writer output.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fizzed.rocker.runtime.AbstractRockerOutput<RockerWriterOutput>
    w(byte[] bytes)
     
    com.fizzed.rocker.runtime.AbstractRockerOutput<RockerWriterOutput>
    w(String string)
     

    Methods inherited from class com.fizzed.rocker.runtime.AbstractRockerOutput

    getByteLength, getCharset, getContentType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.fizzed.rocker.RockerOutput

    toString
  • Constructor Details

    • RockerWriterOutput

      public RockerWriterOutput(Writer writer, com.fizzed.rocker.ContentType contentType, String charsetName)
      Creates a new instance of the Rocker writer output.
      Parameters:
      writer - The writer to render the templates to
      contentType - The content type of the output
      charsetName - The charset of the output
    • RockerWriterOutput

      public RockerWriterOutput(Writer writer, com.fizzed.rocker.ContentType contentType, Charset charset)
      Creates a new instance of the Rocker writer output.
      Parameters:
      writer - The writer to render the templates to
      contentType - The content type of the output
      charset - The charset of the output
  • Method Details