Uses of Interface
io.jstach.jstachio.Output.EncodedOutput
Package
Description
JStachio Core Runtime API.
JStachio extended Mustache context support for context stack as well as Map and JSON
tree like models.
Output utility classes particularly for leveraging pre-encoding efficiently and shared
integration logic for plugging into web application frameworks.
JStachio Service Provider extension points API.
We statically configure all annotated JStache in this package to follow the builtin
dropwizard config.
Spring Boot MVC components using JStachio.
Spring Boot MVC components using JStachio.
Spring Boot WebFlux example Hello endpoint using JStachio.
Spring Boot MVC components using JStachio.
-
Uses of Output.EncodedOutput in io.jstach.jstachio
Modifier and TypeInterfaceDescriptionstatic interface
Output.CloseableEncodedOutput<E extends Exception>
An encoded output that can be closed.Modifier and TypeMethodDescription<A extends Output.EncodedOutput<E>,
E extends Exception>
ARenders the passed in model directly to a binary stream possibly leveraging pre-encoded parts of the template.<A extends Output.EncodedOutput<E>,
E extends Exception>
ARenders the passed in model directly to a binary stream leveraging pre-encoded parts of the template.default <A extends Output.EncodedOutput<E>,
E extends Exception>
ARenders the passed in model directly to a binary stream possibly leveraging pre-encoded parts of the template.default <A extends Output.EncodedOutput<E>,
E extends Exception>
ATemplateModel.write
(A output) Renders the passed in model directly to a binary stream possibly leveraging pre-encoded parts of the template.Modifier and TypeMethodDescriptionstatic Output.EncodedOutput<IOException>
Output.of
(OutputStream a, Charset charset) Adapts anOutputStream
as anOutput
. -
Uses of Output.EncodedOutput in io.jstach.jstachio.context
Modifier and TypeMethodDescription<A extends Output.EncodedOutput<E>,
E extends Exception>
AContextJStachio.write
(Object model, ContextNode context, A output) Renders the passed in model with a context directly to a binary stream leveraging pre-encoded parts of the template.<A extends Output.EncodedOutput<E>,
E extends Exception>
AContextTemplate.write
(T model, ContextNode context, A output) Renders the passed in model directly to a binary stream leveraging pre-encoded parts of the template. -
Uses of Output.EncodedOutput in io.jstach.jstachio.output
Modifier and TypeInterfaceDescriptioninterface
An encoded output that will store the output in its preferred memory structure and can then be copied to anOutputStream
or read from aReadableByteChannel
.interface
An encoded output optimized for producing a singleByteBuffer
.interface
Maintains the encoded output in an iterable of chunks of typeT
that is optimized forBufferedEncodedOutput.asReadableByteChannel()
.interface
LimitEncodedOutput<T,
E extends Exception> This output will limit buffering by byte count and then fallback to pushing to the downstream output type ofT
once limit is exceeded.Modifier and TypeClassDescriptionclass
A custom OutputStream that is designed for generating bytes from pre-encoded output as well as reused carefully either by threadlocals or some other pooling mechanism.class
ForwardingEncodedOutput<E extends Exception>
An encoded output that forwards all calls to a delegate.class
ThresholdEncodedOutput<T,
E extends Exception> This abstract output will limit buffering by byte count and then fallback to pushing to the downstream output type ofT
once limit is exceeded.static class
An OutputStream backed buffer limited encoded output.Modifier and TypeMethodDescriptionprotected abstract Output.EncodedOutput<E>
ForwardingEncodedOutput.delegate()
-
Uses of Output.EncodedOutput in io.jstach.jstachio.spi
Modifier and TypeMethodDescription<A extends Output.EncodedOutput<E>,
E extends Exception>
Afinal <A extends Output.EncodedOutput<E>,
E extends Exception>
AAbstractJStachio.write
(Object model, ContextNode context, A output) Modifier and TypeMethodDescriptionstatic void
Templates.validateEncoding
(TemplateInfo template, Output.EncodedOutput<?> output) A utility method that will check if the templates encoding matches the outputs encoding. -
Uses of Output.EncodedOutput in io.jstach.opt.dropwizard.example
Modifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidExampleModelRenderer.encode
(ExampleModel data, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.protected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidExampleModelRenderer.encode
(ExampleModelRenderer template, ExampleModel data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.<A extends Output.EncodedOutput<E>,
E extends Exception>
AExampleModelRenderer.write
(ExampleModel model, A outputStream) <A extends Output.EncodedOutput<E>,
E extends Exception>
AExampleModelRenderer.write
(ExampleModel model, ContextNode context, A outputStream) -
Uses of Output.EncodedOutput in io.jstach.opt.spring.example.hello
Modifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelAndViewView.encode
(HelloModelAndView data, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.protected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelAndViewView.encode
(HelloModelAndViewView template, HelloModelAndView data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.protected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelView.encode
(HelloModel data, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.protected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelView.encode
(HelloModelView template, HelloModel data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.<A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelAndViewView.write
(HelloModelAndView model, A outputStream) <A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelAndViewView.write
(HelloModelAndView model, ContextNode context, A outputStream) <A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelView.write
(HelloModel model, A outputStream) <A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelView.write
(HelloModel model, ContextNode context, A outputStream) -
Uses of Output.EncodedOutput in io.jstach.opt.spring.example.message
Modifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidMessagePageRenderer.encode
(MessagePage data, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.protected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidMessagePageRenderer.encode
(MessagePageRenderer template, MessagePage data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.<A extends Output.EncodedOutput<E>,
E extends Exception>
AMessagePageRenderer.write
(MessagePage model, A outputStream) <A extends Output.EncodedOutput<E>,
E extends Exception>
AMessagePageRenderer.write
(MessagePage model, ContextNode context, A outputStream) -
Uses of Output.EncodedOutput in io.jstach.opt.spring.webflux.example.hello
Modifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelView.encode
(HelloModel data, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.protected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelView.encode
(HelloModelView template, HelloModel data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.<A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelView.write
(HelloModel model, A outputStream) <A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelView.write
(HelloModel model, ContextNode context, A outputStream) -
Uses of Output.EncodedOutput in io.jstach.opt.spring.webflux.example.message
Modifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidMessagePageRenderer.encode
(MessagePage data, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.protected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidMessagePageRenderer.encode
(MessagePageRenderer template, MessagePage data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.<A extends Output.EncodedOutput<E>,
E extends Exception>
AMessagePageRenderer.write
(MessagePage model, A outputStream) <A extends Output.EncodedOutput<E>,
E extends Exception>
AMessagePageRenderer.write
(MessagePage model, ContextNode context, A outputStream)