Uses of Interface
io.jstach.jstachio.Output
Package
Description
JStachio Core Runtime API.
JStachio extended Mustache context support for context stack as well as Map and JSON
tree like models.
Builtin Formatters.
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 in io.jstach.jstachio
Modifier and TypeInterfaceDescriptionstatic interface
Output.CloseableEncodedOutput<E extends Exception>
An encoded output that can be closed.static interface
Output.EncodedOutput<E extends Exception>
A specialized Output designed for pre-encoded templates that have already encoded byte arrays to be used directly.Modifier and TypeMethodDescriptionAppender.append
(A a, boolean b) Appends a boolean to the output.Appender.append
(A a, char c) Appends a character to the output.Appender.append
(A a, double d) Appends a double to the output.Appender.append
(A a, int i) Appends an int to the output.Appender.append
(A a, long l) Appends a long to the output.Appender.append
(A a, short s) Appends a short to the output.Appender.append
(A a, CharSequence s) Analogous toAppendable.append(CharSequence)
.Appender.append
(A a, CharSequence csq, int start, int end) Analogous toAppendable.append(CharSequence, int, int)
.Escaper.append
(A a, boolean b) Escapes the character if it needs escaping.Escaper.append
(A a, char c) Escapes the character if it needs escaping.Escaper.append
(A a, double d) Escapes the character if it needs escaping.Escaper.append
(A a, int i) Escapes the character if it needs escaping.Escaper.append
(A a, long l) Escapes the character if it needs escaping.Escaper.append
(A a, short s) Escapes the character if it needs escaping.Escaper.append
(A a, CharSequence s) Escapes the characters if it needs it.Escaper.append
(A a, CharSequence csq, int start, int end) Escapes the characters if it needs it.Renders the passed in model.Renders the passed in model to an appendable like output.TemplateModel.execute
(A output) Renders the passed in model directly to an appendable like output.Formats the object and then sends the results to the downstream appender.Formats the object and then sends the results to the downstream appender.Formats the object and then sends the results to the downstream appender.Formats the object and then sends the results to the downstream appender.Formats the object and then sends the results to the downstream appender.Formats the object and then sends the results to the downstream appender.Formatter.format
(Appender downstream, A a, String path, @Nullable Formatter.Formattable f) Formats the formattable object and then sends the results to the downstream appender.Formats the object and then sends the results to the downstream appender.Formats the object and then sends the results to the downstream appender.Called by the formatter to format.Modifier and TypeMethodDescriptionstatic Output<IOException>
Output.of
(Appendable a) Adapts anAppendable
as anOutput
. -
Uses of Output in io.jstach.jstachio.context
Modifier and TypeMethodDescriptionContextJStachio.execute
(Object model, ContextNode context, A appendable) Renders the passed in model with a context.ContextTemplate.execute
(T model, ContextNode context, A appendable) Renders the passed in model to an appendable like output. -
Uses of Output in io.jstach.jstachio.formatters
Modifier and TypeMethodDescriptionFormats the object and then sends the results to the downstream appender.Formats the object and then sends the results to the downstream appender.Formats the object and then sends the results to the downstream appender.Formats the object and then sends the results to the downstream appender. -
Uses of Output 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
ForwardingOutput<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. -
Uses of Output in io.jstach.jstachio.spi
Modifier and TypeMethodDescriptionAbstractJStachio.execute
(Object model, ContextNode context, A appendable) -
Uses of Output in io.jstach.opt.dropwizard.example
Modifier and TypeMethodDescriptionExampleModelRenderer.execute
(ExampleModel model, A a) ExampleModelRenderer.execute
(ExampleModel model, A a, Formatter formatter, Escaper escaper) Renders the passed in model.ExampleModelRenderer.execute
(ExampleModel model, ContextNode context, A a) ExampleModelRenderer.render
(ExampleModel data, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.ExampleModelRenderer.render
(ExampleModelRenderer template, ExampleModel data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model. -
Uses of Output in io.jstach.opt.spring.example.hello
Modifier and TypeMethodDescriptionHelloModelAndViewView.execute
(HelloModelAndView model, A a) HelloModelAndViewView.execute
(HelloModelAndView model, A a, Formatter formatter, Escaper escaper) Renders the passed in model.HelloModelAndViewView.execute
(HelloModelAndView model, ContextNode context, A a) HelloModelView.execute
(HelloModel model, A a) HelloModelView.execute
(HelloModel model, A a, Formatter formatter, Escaper escaper) Renders the passed in model.HelloModelView.execute
(HelloModel model, ContextNode context, A a) HelloModelAndViewView.render
(HelloModelAndView data, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.HelloModelAndViewView.render
(HelloModelAndViewView template, HelloModelAndView data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.HelloModelView.render
(HelloModel data, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.HelloModelView.render
(HelloModelView template, HelloModel data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model. -
Uses of Output in io.jstach.opt.spring.example.message
Modifier and TypeMethodDescriptionMessagePageRenderer.execute
(MessagePage model, A a) MessagePageRenderer.execute
(MessagePage model, A a, Formatter formatter, Escaper escaper) Renders the passed in model.MessagePageRenderer.execute
(MessagePage model, ContextNode context, A a) MessagePageRenderer.render
(MessagePage data, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.MessagePageRenderer.render
(MessagePageRenderer template, MessagePage data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model. -
Uses of Output in io.jstach.opt.spring.webflux.example.hello
Modifier and TypeMethodDescriptionHelloModelView.execute
(HelloModel model, A a) HelloModelView.execute
(HelloModel model, A a, Formatter formatter, Escaper escaper) Renders the passed in model.HelloModelView.execute
(HelloModel model, ContextNode context, A a) HelloModelView.render
(HelloModel data, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.HelloModelView.render
(HelloModelView template, HelloModel data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model. -
Uses of Output in io.jstach.opt.spring.webflux.example.message
Modifier and TypeMethodDescriptionMessagePageRenderer.execute
(MessagePage model, A a) MessagePageRenderer.execute
(MessagePage model, A a, Formatter formatter, Escaper escaper) Renders the passed in model.MessagePageRenderer.execute
(MessagePage model, ContextNode context, A a) MessagePageRenderer.render
(MessagePage data, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.MessagePageRenderer.render
(MessagePageRenderer template, MessagePage data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.