Package | Description |
---|---|
freemarker.core |
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template . |
freemarker.template |
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration (see also the
Getting Started in the Manual.) |
Modifier and Type | Class and Description |
---|---|
class |
CombinedMarkupOutputFormat
Represents two markup formats nested into each other.
|
class |
CommonMarkupOutputFormat<MO extends CommonTemplateMarkupOutputModel>
Common superclass for implementing
MarkupOutputFormat -s that use a CommonTemplateMarkupOutputModel
subclass. |
class |
CSSOutputFormat
Represents the CSS output format (MIME type "text/css", name "CSS").
|
class |
HTMLOutputFormat
Represents the HTML output format (MIME type "text/html", name "HTML").
|
class |
JavaScriptOutputFormat
Represents the JavaScript output format (MIME type "application/javascript", name "JavaScript").
|
class |
JSONOutputFormat
Represents the JSON output format (MIME type "application/json", name "JSON").
|
class |
MarkupOutputFormat<MO extends TemplateMarkupOutputModel>
Superclass of
OutputFormat -s that represent a "markup" format, which is any format where certain character
sequences have special meaning, and thus may need escaping. |
class |
PlainTextOutputFormat
Represents the plain text output format (MIME type "text/plain", name "plainText").
|
class |
RTFOutputFormat
Represents the Rich Text Format output format (MIME type "application/rtf", name "RTF").
|
class |
UndefinedOutputFormat
Represents the output format used when the template output format is undecided.
|
class |
XHTMLOutputFormat
Represents the XML output format (MIME type "application/xhtml+xml", name "XHTML"); this behaves identically to
HTMLOutputFormat , except that the name an the MIME Type differs. |
class |
XMLOutputFormat
Represents the XML output format (MIME type "application/xml", name "XML").
|
Modifier and Type | Method and Description |
---|---|
OutputFormat |
TemplateConfiguration.getOutputFormat()
The getter pair of
TemplateConfiguration.setOutputFormat(OutputFormat) . |
OutputFormat |
ParserConfiguration.getOutputFormat()
|
Modifier and Type | Method and Description |
---|---|
void |
TemplateConfiguration.setOutputFormat(OutputFormat outputFormat)
Sets the output format of the template; see
Configuration.setOutputFormat(OutputFormat) for more. |
Modifier and Type | Method and Description |
---|---|
OutputFormat |
Template.getOutputFormat()
Returns the output format (see
Configuration.setOutputFormat(OutputFormat) ) used for this template. |
OutputFormat |
Configuration.getOutputFormat()
Getter pair of
Configuration.setOutputFormat(OutputFormat) |
OutputFormat |
Configuration.getOutputFormat(java.lang.String name)
Returns the output format for a name.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends OutputFormat> |
Configuration.getRegisteredCustomOutputFormats()
Getter pair of
Configuration.setRegisteredCustomOutputFormats(Collection) . |
Modifier and Type | Method and Description |
---|---|
void |
Configuration.setOutputFormat(OutputFormat outputFormat)
Sets the default output format.
|
Modifier and Type | Method and Description |
---|---|
void |
Configuration.setRegisteredCustomOutputFormats(java.util.Collection<? extends OutputFormat> registeredCustomOutputFormats)
Sets the custom output formats that can be referred by their unique name (
getName() ) from
templates. |