Interface ByteBufTemplateSet

All Superinterfaces:
TemplateSet
All Known Subinterfaces:
LoginView.BytebufTemplateSet
All Known Implementing Classes:
AbstractByteBufPublisherTemplateSet, AbstractByteBufTemplateSet, AbstractCompositeByteBufTemplateSet

public interface ByteBufTemplateSet extends TemplateSet

A TemplateSet which can render ByteBuf.

Since:
1.2
Author:
Jeremy Kuhn
  • Method Details

    • directByteBuf

      static ByteBuf directByteBuf(String data, Charset charset)

      Creates a direct ByteBuf with the specified data encoded using the specified charset.

      Parameters:
      data - the data
      charset - the charset
      Returns:
      a direct ByteBuf
    • render

      CompletableFuture<Void> render(ByteBuf value)

      Renders a ByteBuf to the output.

      Parameters:
      value - the ByteBuf to render
      Returns:
      a future which completes once the value is rendered