cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/serialization SVGSerializer.java
Date Thu, 11 Jan 2001 19:12:37 GMT
dims        01/01/11 11:12:37

  Modified:    lib      Tag: xml-cocoon2 batik-all.jar
               src/org/apache/cocoon/serialization Tag: xml-cocoon2
                        SVGSerializer.java
  Log:
  Chasing Batik's changes.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.6   +1812 -1713xml-cocoon/lib/Attic/batik-all.jar
  
  	<<Binary file>>
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.21  +3 -8      xml-cocoon/src/org/apache/cocoon/serialization/Attic/SVGSerializer.java
  
  Index: SVGSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/serialization/Attic/SVGSerializer.java,v
  retrieving revision 1.1.2.20
  retrieving revision 1.1.2.21
  diff -u -r1.1.2.20 -r1.1.2.21
  --- SVGSerializer.java	2001/01/04 22:39:27	1.1.2.20
  +++ SVGSerializer.java	2001/01/11 19:12:32	1.1.2.21
  @@ -24,6 +24,7 @@
   
   import org.apache.batik.refimpl.transcoder.*;
   import org.apache.batik.transcoder.*;
  +import org.apache.batik.refimpl.transcoder.AbstractTranscoder;
   
   import org.apache.xml.serialize.SerializerFactory;
   import org.apache.xml.serialize.Method;
  @@ -36,7 +37,7 @@
    * A Batik based Serializer for generating PNG/JPG images
    *
    * @author <a href="mailto:dims@yahoo.com">Davanum Srinivas</a>
  - * @version CVS $Revision: 1.1.2.20 $ $Date: 2001/01/04 22:39:27 $
  + * @version CVS $Revision: 1.1.2.21 $ $Date: 2001/01/11 19:12:32 $
    */
   public class SVGSerializer extends SVGBuilder implements Composer, Serializer, Configurable
{
   
  @@ -122,15 +123,9 @@
           try {
               TranscoderFactory transcoderFactory =
   	            ConcreteTranscoderFactory.getTranscoderFactoryImplementation();
  -            Transcoder transcoder = 
  +            AbstractTranscoder transcoder = (AbstractTranscoder)
                   transcoderFactory.createTranscoder(mimetype);
  -
  -            // TODO: FIXME(DIMS) : Remove hard-coded parser name.
  -            transcoder.addTranscodingHint(
  -                        TranscodingHints.KEY_XML_PARSER_CLASSNAME,
  -		                "org.apache.xerces.parsers.SAXParser");
               transcoder.transcodeToStream(doc,this.output);
  -
               this.output.flush();
           } catch (Exception ex) {
               log.warn("SVGSerializer: Exception writing image", ex);
  
  
  

Mime
View raw message