本文整理了Java中freemarker.template.Configuration.setRegisteredCustomOutputFormats()
方法的一些代码示例,展示了Configuration.setRegisteredCustomOutputFormats()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.setRegisteredCustomOutputFormats()
方法的具体详情如下:
包路径:freemarker.template.Configuration
类名称:Configuration
方法名:setRegisteredCustomOutputFormats
[英]Sets the custom output formats that can be referred by their unique name ( OutputFormat#getName()) from templates. Names are also used to look up the OutputFormat for standard file extensions; see them at #setRecognizeStandardFileExtensions(boolean).
When there's a clash between a custom output format name and a standard output format name, the custom format will win, thus you can override the meaning of standard output format names. Except, it's not allowed to override UndefinedOutputFormat and PlainTextOutputFormat.
The default value is an empty collection.
[中]设置可通过模板中的唯一名称(OutputFormat#getName())引用的自定义输出格式。名称还用于查找标准文件扩展名的OutputFormat;在#setRecognizeStandardFileExtensions(布尔值)上查看它们。
当自定义输出格式名称与标准输出格式名称发生冲突时,自定义格式将获胜,因此您可以覆盖标准输出格式名称的含义。除此之外,不允许覆盖UndefinedOutputFormat和PlainTextOutputFormat。
默认值为空集合。
代码示例来源:origin: org.freemarker/freemarker
setRegisteredCustomOutputFormats(list);
} else if (RECOGNIZE_STANDARD_FILE_EXTENSIONS_KEY_SNAKE_CASE.equals(name)
|| RECOGNIZE_STANDARD_FILE_EXTENSIONS_KEY_CAMEL_CASE.equals(name)) {
代码示例来源:origin: org.freemarker/freemarker-gae
setRegisteredCustomOutputFormats(list);
} else if (RECOGNIZE_STANDARD_FILE_EXTENSIONS_KEY_SNAKE_CASE.equals(name)
|| RECOGNIZE_STANDARD_FILE_EXTENSIONS_KEY_CAMEL_CASE.equals(name)) {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker
setRegisteredCustomOutputFormats(list);
} else if (RECOGNIZE_STANDARD_FILE_EXTENSIONS_KEY_SNAKE_CASE.equals(name)
|| RECOGNIZE_STANDARD_FILE_EXTENSIONS_KEY_CAMEL_CASE.equals(name)) {
内容来源于网络,如有侵权,请联系作者删除!