Uses of Class
freemarker.core.OutputFormat
Packages that use OutputFormat
Package
Description
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template
.The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration
(see also the
Getting Started in the Manual.)-
Uses of OutputFormat in freemarker.core
Subclasses of OutputFormat in freemarker.coreModifier and TypeClassDescriptionfinal class
Represents two markup formats nested into each other.class
Common superclass for implementingMarkupOutputFormat
-s that use aCommonTemplateMarkupOutputModel
subclass.class
Represents the CSS output format (MIME type "text/css", name "CSS").class
Represents the HTML output format (MIME type "text/html", name "HTML").class
Represents the JavaScript output format (MIME type "application/javascript", name "JavaScript").class
Represents the JSON output format (MIME type "application/json", name "JSON").class
MarkupOutputFormat<MO extends TemplateMarkupOutputModel>
Superclass ofOutputFormat
-s that represent a "markup" format, which is any format where certain character sequences have special meaning and thus may need escaping.final class
Represents the plain text output format (MIME type "text/plain", name "plainText").class
Represents the Rich Text Format output format (MIME type "application/rtf", name "RTF").final class
Represents the output format used when the template output format is undecided.class
Represents the XML output format (MIME type "application/xhtml+xml", name "XHTML"); this behaves identically toHTMLOutputFormat
, except that the name an the MIME Type differs.class
Represents the XML output format (MIME type "application/xml", name "XML").Methods in freemarker.core that return OutputFormatModifier and TypeMethodDescriptionParserConfiguration.getOutputFormat()
TemplateConfiguration.getOutputFormat()
The getter pair ofTemplateConfiguration.setOutputFormat(OutputFormat)
.Methods in freemarker.core with parameters of type OutputFormatModifier and TypeMethodDescriptionvoid
TemplateConfiguration.setOutputFormat
(OutputFormat outputFormat) Sets the output format of the template; seeConfiguration.setOutputFormat(OutputFormat)
for more. -
Uses of OutputFormat in freemarker.template
Methods in freemarker.template that return OutputFormatModifier and TypeMethodDescriptionConfiguration.getOutputFormat()
Getter pair ofConfiguration.setOutputFormat(OutputFormat)
Configuration.getOutputFormat
(String name) Returns the output format for a name.Template.getOutputFormat()
Returns the output format (seeConfiguration.setOutputFormat(OutputFormat)
) used for this template.Methods in freemarker.template that return types with arguments of type OutputFormatModifier and TypeMethodDescriptionCollection
<? extends OutputFormat> Configuration.getRegisteredCustomOutputFormats()
Getter pair ofConfiguration.setRegisteredCustomOutputFormats(Collection)
.Methods in freemarker.template with parameters of type OutputFormatModifier and TypeMethodDescriptionvoid
Configuration.setOutputFormat
(OutputFormat outputFormat) Sets the default output format.Method parameters in freemarker.template with type arguments of type OutputFormatModifier and TypeMethodDescriptionvoid
Configuration.setRegisteredCustomOutputFormats
(Collection<? extends OutputFormat> registeredCustomOutputFormats) Sets the custom output formats that can be referred by their unique name (getName()
) from templates.