You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@locus.apache.org on 2000/11/01 17:47:48 UTC

cvs commit: xml-xalan/java/src/org/apache/serialize DOMSerializer.java

sboag       00/11/01 08:47:47

  Modified:    java/src/org/apache/serialize DOMSerializer.java
  Log:
  Only declare a serialize(Node node) method.
  
  Revision  Changes    Path
  1.3       +3 -24     xml-xalan/java/src/org/apache/serialize/DOMSerializer.java
  
  Index: DOMSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/serialize/DOMSerializer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DOMSerializer.java	2000/10/30 18:56:09	1.2
  +++ DOMSerializer.java	2000/11/01 16:47:45	1.3
  @@ -58,9 +58,7 @@
   
   import java.io.IOException;
   
  -import org.w3c.dom.Element;
  -import org.w3c.dom.Document;
  -import org.w3c.dom.DocumentFragment;
  +import org.w3c.dom.Node;
   
   /**
    * Interface for a DOM serializer implementation.
  @@ -85,31 +83,12 @@
    */
   public interface DOMSerializer
   {
  -
     /**
  -   * Serializes the DOM element. Throws an exception only if an I/O
  +   * Serializes the DOM node. Throws an exception only if an I/O
      * exception occured while serializing.
      *
      * @param elem The element to serialize
      * @throws IOException An I/O exception occured while serializing
  -   */
  -  public void serialize(Element elem) throws IOException;
  -
  -  /**
  -   * Serializes the DOM document. Throws an exception only if an I/O
  -   * exception occured while serializing.
  -   *
  -   * @param doc The document to serialize
  -   * @throws IOException An I/O exception occured while serializing
  -   */
  -  public void serialize(Document doc) throws IOException;
  -
  -  /**
  -   * Serializes the DOM document fragment. Throws an exception only
  -   * if an I/O exception occured while serializing.
  -   *
  -   * @param frag The document fragment to serialize
  -   * @throws IOException An I/O exception occured while serializing
      */
  -  public void serialize(DocumentFragment frag) throws IOException;
  +  public void serialize(Node node) throws IOException;
   }