cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From step...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/serialization RTFSerializer.java
Date Sun, 21 Jul 2002 22:34:24 GMT
stephan     2002/07/21 15:34:24

  Modified:    src/java/org/apache/cocoon/serialization RTFSerializer.java
  Log:
  The serializer doesn't compile because of the replacement of Loggable.
  
  Revision  Changes    Path
  1.8       +15 -7     xml-cocoon2/src/java/org/apache/cocoon/serialization/RTFSerializer.java
  
  Index: RTFSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/serialization/RTFSerializer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- RTFSerializer.java	3 May 2002 12:28:58 -0000	1.7
  +++ RTFSerializer.java	21 Jul 2002 22:34:24 -0000	1.8
  @@ -55,6 +55,8 @@
   import org.apache.avalon.framework.component.ComponentException;
   import org.apache.avalon.framework.component.ComponentManager;
   import org.apache.avalon.framework.component.Composable;
  +import org.apache.avalon.framework.logger.Loggable;
  +import org.apache.avalon.framework.logger.Logger;
   
   import org.apache.log.Priority;
   import org.apache.log.util.OutputStreamLogger;
  @@ -82,7 +84,7 @@
    */
   
   public class RTFSerializer extends AbstractTextSerializer
  -  implements Composable {
  +  implements Composable, Loggable {
   
       private Writer rtfWriter = null;
       private Converter handler = null;
  @@ -102,17 +104,23 @@
       }
   
       /**
  +     * Provide component with a logger.
  +     *
  +     * @param logger the logger
  +     */
  +    public void setLogger(org.apache.log.Logger logger) {
  +        // FIXME Find a way to work with the org.apache.avalon.framework.logger.Logger
  +        cocoonLogger =
  +            new OutputStreamLogger(logger, Priority.DEBUG);
  +    }
  +
  +    /**
        * Set the OutputStream where the serializer will write to.
        *
        * @param out the OutputStream
        */
  -
  -
       public void setOutputStream(OutputStream out) {
           try {
  -          cocoonLogger =
  -            new OutputStreamLogger(this.getLogger(), Priority.DEBUG);
  -
             rtfWriter =
               new BufferedWriter(new OutputStreamWriter(out, "ISO-8859-1"));
             handler = new Converter(rtfWriter,
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message