Author: thorsten
Date: Sun Jan 1 23:37:30 2012
New Revision: 1226315
URL: http://svn.apache.org/viewvc?rev=1226315&view=rev
Log:
Extending transformer to allow custom encoding in constructor
Modified:
cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
Modified: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java?rev=1226315&r1=1226314&r2=1226315&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java (original)
+++ cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java Sun Jan 1 23:37:30 2012
@@ -735,12 +735,14 @@ public class I18nTransformer extends Abs
public I18nTransformer(final Locale locale, final String bundle,
final String untranslated) {
-
+ this(locale, bundle, untranslated, DEFAULT_ENCODING);
+ }
+
+ public I18nTransformer(final Locale locale, final String bundle,
+ final String untranslated, final String encoding) {
super();
-
- this.init(locale, bundle, untranslated, DEFAULT_ENCODING);
+ this.init(locale, bundle, untranslated, encoding);
}
-
private void init(final Locale locale, final String bundle,
final String untranslated, final String encoding) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.