You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by di...@apache.org on 2001/01/04 15:29:54 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/serialization TextSerializer.java XMLSerializer.java
dims 01/01/04 06:29:54
Modified: src/org/apache/cocoon/serialization Tag: xml-cocoon2
TextSerializer.java XMLSerializer.java
Log:
"Patch for poolable Serializers" from "Carsten Ziegeler" <cz...@sundn.de>
Revision Changes Path
No revision
No revision
1.1.2.6 +4 -3 xml-cocoon/src/org/apache/cocoon/serialization/Attic/TextSerializer.java
Index: TextSerializer.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/serialization/Attic/TextSerializer.java,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -r1.1.2.5 -r1.1.2.6
--- TextSerializer.java 2000/12/08 20:40:12 1.1.2.5
+++ TextSerializer.java 2001/01/04 14:29:53 1.1.2.6
@@ -14,15 +14,16 @@
import org.apache.xml.serialize.Method;
import org.apache.xml.serialize.OutputFormat;
+import org.apache.avalon.Poolable;
import org.apache.avalon.Configuration;
import org.apache.avalon.ConfigurationException;
/**
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @version CVS $Revision: 1.1.2.5 $ $Date: 2000/12/08 20:40:12 $
+ * @version CVS $Revision: 1.1.2.6 $ $Date: 2001/01/04 14:29:53 $
*/
-public class TextSerializer extends AbstractTextSerializer {
+public class TextSerializer extends AbstractTextSerializer implements Poolable {
private SerializerFactory factory;
@@ -35,7 +36,7 @@
super.setOutputStream(out);
this.setContentHandler(this.factory.makeSerializer(out, this.format).asContentHandler());
} catch (Exception e) {
- log.error("TextSerializer", e);
+ log.error("TextSerializer.setOutputStream()", e);
throw new RuntimeException(e.toString());
}
}
1.1.2.10 +4 -3 xml-cocoon/src/org/apache/cocoon/serialization/Attic/XMLSerializer.java
Index: XMLSerializer.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/serialization/Attic/XMLSerializer.java,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -u -r1.1.2.9 -r1.1.2.10
--- XMLSerializer.java 2000/12/08 20:40:13 1.1.2.9
+++ XMLSerializer.java 2001/01/04 14:29:53 1.1.2.10
@@ -14,15 +14,16 @@
import org.apache.xml.serialize.Method;
import org.apache.xml.serialize.OutputFormat;
+import org.apache.avalon.Poolable;
import org.apache.avalon.Configuration;
import org.apache.avalon.ConfigurationException;
/**
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @version CVS $Revision: 1.1.2.9 $ $Date: 2000/12/08 20:40:13 $
+ * @version CVS $Revision: 1.1.2.10 $ $Date: 2001/01/04 14:29:53 $
*/
-public class XMLSerializer extends AbstractTextSerializer {
+public class XMLSerializer extends AbstractTextSerializer implements Poolable {
private SerializerFactory factory;
@@ -35,7 +36,7 @@
super.setOutputStream(out);
this.setContentHandler(this.factory.makeSerializer(out, this.format).asContentHandler());
} catch (Exception e) {
- log.error("XMLSerializer", e);
+ log.error("XMLSerializer.setOutputStream()", e);
throw new RuntimeException(e.toString());
}
}