You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dl...@apache.org on 2001/02/02 20:10:37 UTC

cvs commit: xml-xalan/java/compat_src/org/apache/xalan/xslt XSLTResultTarget.java

dleslie     01/02/02 11:10:35

  Modified:    java/compat_src/org/apache/xalan/xslt XSLTResultTarget.java
  Log:
  Fixed javadoc for api that was just added back.
  
  Revision  Changes    Path
  1.4       +38 -21    xml-xalan/java/compat_src/org/apache/xalan/xslt/XSLTResultTarget.java
  
  Index: XSLTResultTarget.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/compat_src/org/apache/xalan/xslt/XSLTResultTarget.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XSLTResultTarget.java	2001/02/02 18:00:30	1.3
  +++ XSLTResultTarget.java	2001/02/02 19:10:31	1.4
  @@ -92,6 +92,9 @@
       * Zero-argument default constructor  -- Before you can use the new XSLTResultTarget object in a transformation,
       * you must define the output container by setting its FileName, CharacterStrea, ByteStream, or Node property.
       *
  +    * @see #setFileName(String)
  +    * @see #setCharacterStream(Writer)
  +    * @see #setByteStream(OutputStream)
       * @see #setNode(Node)
       * @see #setDocumentHandler(DocumentHandler)
       * @see #setEncoding(String)
  @@ -107,6 +110,9 @@
      *
      * @param fileName Identifies the file that will contain the transformation result (must be a valid system file name).
      *
  +   * @see #setFileName(String)
  +   * @see #setCharacterStream(Writer)
  +   * @see #setByteStream(OutputStream)
      * @see #setNode(Node)
      * @see #setDocumentHandler(DocumentHandler)
      * @see #setEncoding(String)
  @@ -124,6 +130,9 @@
      *
      * @param byteStream The raw byte stream that will contain the transformation result.
      *
  +   * @see #setByteStream(OutputStream)
  +   * @see #setFileName(String)
  +   * @see #setCharacterStream(Writer)
      * @see #setNode(Node)
      * @see #setDocumentHandler(DocumentHandler)
      * @see #setEncoding(String)
  @@ -142,6 +151,9 @@
      *
      * @param characterStream The character stream where the transformation result is written.
      *
  +   * @see #setCharacterStream(Writer)
  +   * @see #setByteStream(OutputStream)
  +   * @see #setFileName(String)
      * @see #setNode(Node)
      * @see #setDocumentHandler(DocumentHandler)
      * @see #setEncoding(String)
  @@ -158,7 +170,10 @@
      *
      * @param node The DOM Node that will contain the transformation result.
      *
  -   * @see #setNode(Node)
  +  * @see #setNode(Node)
  +   * @see #setCharacterStream(Writer)
  +   * @see #setByteStream(OutputStream)
  +   * @see #setFileName(String)
      * @see #setDocumentHandler(DocumentHandler)
      * @see #setEncoding(String)
      */
  @@ -175,8 +190,11 @@
      *
      * @param handler The SAX Document handler to which the result is written.
      *
  -   * @see #setDocumentHandler(DocumentHandler)
  +  * @see #setDocumentHandler(DocumentHandler)
      * @see #setNode(Node)
  +   * @see #setCharacterStream(Writer)
  +   * @see #setByteStream(OutputStream)
  +   * @see #setFileName(String)
      * @see #setEncoding(String)
      */
     public XSLTResultTarget(DocumentHandler handler)
  @@ -192,6 +210,7 @@
      * @param fileName The system identifier as a string.
      *
      * @see #XSLTResultTarget(String)
  +   * @see #getFileName
      */
     public void setFileName (String fileName) // File?
     {
  @@ -207,6 +226,7 @@
      * @return The file name or URL.
      *
      * @see #XSLTResultTarget(String)
  +   * @see #setFileName(String)
      */
     public String getFileName ()
     {
  @@ -312,31 +332,28 @@
           return null;
       }
       
  -    /**
  -     * Set the node that will contain the result DOM tree.  In practice,
  -     * the node should be a {@link org.w3c.dom.Document} node,
  -     * a {@link org.w3c.dom.DocumentFragment} node, or a
  -     * {@link org.w3c.dom.Element} node.  In other words, a node
  -     * that accepts children.
  -     *
  -     * @param node The node to which the transformation
  -     * will be appended.
  -     */
  + /**
  +   * Set the byte stream to contain the transformation result.
  +   *
  +   * @param byteStream A byte stream that will contain the transformation result.
  +   *
  +   * @see #XSLTResultTarget(OutputStream)
  +   * @see #setByteStream(OutputStream)
  +   */
       public void setByteStream(OutputStream byteStrm) {
           if (sr == null)
             sr = new StreamResult();
           sr.setOutputStream(byteStrm);
       }
   
  -    /**
  -     * Get the node that will contain the result DOM tree.
  -     * If no node was set via setNode, the node will be
  -     * set by the transformation, and may be obtained from
  -     * this method once the transformation is complete.
  -     *
  -     * @return The node to which the transformation
  -     * will be appended.
  -     */
  + /**
  +   * Get the byte stream that contains or will contain the transformation result.
  +   *
  +   * @return The byte stream, or null if none was supplied.
  +   *
  +   * @see #XSLTResultTarget(OutputStream)
  +   * @see #setByteStream(OutputStream)
  +   */
       public OutputStream getByteStream() {
         if (sr != null)
           return sr.getOutputStream();