dleslie     00/10/18 10:56:22

  Modified:    java/samples/Pipe Pipe.java
  Log:
  Updated to use org.apache.xml.serialize.transition in place of the
  Xerces package.
  
  Revision  Changes    Path
  1.4       +5 -5      xml-xalan/java/samples/Pipe/Pipe.java
  
  Index: Pipe.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/samples/Pipe/Pipe.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Pipe.java 2000/10/13 02:33:03     1.3
  +++ Pipe.java 2000/10/18 17:56:21     1.4
  @@ -78,9 +78,9 @@
   import org.w3c.dom.Node;
   
   // Imported Serializer classes
  -import org.apache.xml.serialize.OutputFormat;
  -import org.apache.xml.serialize.Serializer;
  -import org.apache.xml.serialize.SerializerFactory;
  +import org.apache.serialize.OutputFormat;
  +import org.apache.serialize.Serializer;
  +import org.apache.serialize.SerializerFactory;
   
   // Imported JAVA API for XML Parsing 1.0 classes
   import javax.xml.parsers.DocumentBuilder;
  @@ -131,8 +131,8 @@
       transformer2.setContentHandler(transformer3.getInputContentHandler());   
        
       // transformer3 outputs SAX events to the serializer.
  -    SerializerFactory sf = SerializerFactory.getSerializerFactory("xml");
  -    Serializer serializer = sf.makeSerializer(System.out, new 
OutputFormat());
  +    Serializer serializer = SerializerFactory.getSerializer("xml");
  +    serializer.setOutputStream(System.out);
       transformer3.setContentHandler(serializer.asContentHandler());
   
        // Parse the XML input document. The input ContentHandler and output 
ContentHandler
  
  
  

Reply via email to