aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/txt
diff options
context:
space:
mode:
authorMehdi Houshmand <mehdi@apache.org>2012-06-26 12:31:50 +0000
committerMehdi Houshmand <mehdi@apache.org>2012-06-26 12:31:50 +0000
commitc9f6e74ddf229f879ea7df1b389d6018286ca1aa (patch)
treead95d6d23e332d8320964a843c366b58c1b455bd /src/java/org/apache/fop/render/txt
parent13a68b516babeccef8772be65b83b3de35e854e7 (diff)
downloadxmlgraphics-fop-c9f6e74ddf229f879ea7df1b389d6018286ca1aa.tar.gz
xmlgraphics-fop-c9f6e74ddf229f879ea7df1b389d6018286ca1aa.zip
Improved the handling of defaults for PDF config and general clean up
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_URI_Unification@1353992 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/txt')
-rw-r--r--src/java/org/apache/fop/render/txt/TxtRendererConfig.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/render/txt/TxtRendererConfig.java b/src/java/org/apache/fop/render/txt/TxtRendererConfig.java
index 7b0045664..f597ee518 100644
--- a/src/java/org/apache/fop/render/txt/TxtRendererConfig.java
+++ b/src/java/org/apache/fop/render/txt/TxtRendererConfig.java
@@ -36,13 +36,13 @@ import org.apache.fop.render.RendererConfigOption;
*/
public final class TxtRendererConfig implements RendererConfig {
- public enum TxtRendererConfigOption implements RendererConfigOption {
+ public enum TxtRendererOption implements RendererConfigOption {
ENCODING("encoding", "UTF-8");
private final String name;
private final Object defaultValue;
- private TxtRendererConfigOption(String name, Object defaultValue) {
+ private TxtRendererOption(String name, Object defaultValue) {
this.name = name;
this.defaultValue = defaultValue;
}
@@ -56,8 +56,8 @@ public final class TxtRendererConfig implements RendererConfig {
}
}
- private final EnumMap<TxtRendererConfigOption, Object> params
- = new EnumMap<TxtRendererConfigOption, Object>(TxtRendererConfigOption.class);
+ private final EnumMap<TxtRendererOption, Object> params
+ = new EnumMap<TxtRendererOption, Object>(TxtRendererOption.class);
private final DefaultFontConfig fontConfig;
@@ -70,7 +70,7 @@ public final class TxtRendererConfig implements RendererConfig {
}
public String getEncoding() {
- return (String) params.get(TxtRendererConfigOption.ENCODING);
+ return (String) params.get(TxtRendererOption.ENCODING);
}
/**
@@ -83,7 +83,7 @@ public final class TxtRendererConfig implements RendererConfig {
TxtRendererConfig config = new TxtRendererConfig(new DefaultFontConfigParser().parse(cfg,
userAgent.validateStrictly()));
if (cfg != null) {
- TxtRendererConfigOption option = TxtRendererConfigOption.ENCODING;
+ TxtRendererOption option = TxtRendererOption.ENCODING;
String value = cfg.getChild(option.getName(), true).getValue(null);
config.params.put(option, value != null ? value : option.getDefaultValue());
}