cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [C2]: Patch for poolable Serializers
Date Thu, 04 Jan 2001 14:30:58 GMT
Carsten,
Wish you a happy new year too. Checked in. Please cross-check.

Thanks,
dims

--- Carsten Ziegeler <cziegeler@sundn.de> wrote:
> Hi,
> 
> happy new year to all of you!
> 
> Attached is a very simple patch for the XMLSerializer and TextSerializer to make them
poolable.
> 
> 
> Carsten
> 
> 
> Open Source Group              sunShine - Lighting up e:Business
> ================================================================
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.sundn.de                           mailto:cziegeler@sundn.de 
> ================================================================
> > Index: TextSerializer.java
> ===================================================================
> RCS file:
> /home/cvspublic/xml-cocoon/src/org/apache/cocoon/serialization/Attic/TextSerializer.java,v
> retrieving revision 1.1.2.5
> diff -u -r1.1.2.5 TextSerializer.java
> --- TextSerializer.java	2000/12/08 20:40:12	1.1.2.5
> +++ TextSerializer.java	2001/01/04 12:46:20
> @@ -14,6 +14,7 @@
>  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;
>  
> @@ -22,7 +23,7 @@
>   * @version CVS $Revision: 1.1.2.5 $ $Date: 2000/12/08 20:40:12 $
>   */
>  
> -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());
>          }
>      }
> Index: XMLSerializer.java
> ===================================================================
> RCS file:
> /home/cvspublic/xml-cocoon/src/org/apache/cocoon/serialization/Attic/XMLSerializer.java,v
> retrieving revision 1.1.2.9
> diff -u -r1.1.2.9 XMLSerializer.java
> --- XMLSerializer.java	2000/12/08 20:40:13	1.1.2.9
> +++ XMLSerializer.java	2001/01/04 12:46:20
> @@ -14,6 +14,7 @@
>  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;
>  
> @@ -22,7 +23,7 @@
>   * @version CVS $Revision: 1.1.2.9 $ $Date: 2000/12/08 20:40:13 $
>   */
>  
> -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());
>          }
>      }
> 
> > ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

Mime
View raw message