cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/xml IncludeXMLConsumer.java
Date Thu, 25 Sep 2003 12:55:02 GMT
vgritsenko    2003/09/25 05:55:02

  Modified:    src/java/org/apache/cocoon/xml IncludeXMLConsumer.java
  Log:
  javadoc fixes and formatting changes
  
  Revision  Changes    Path
  1.2       +22 -14    cocoon-2.1/src/java/org/apache/cocoon/xml/IncludeXMLConsumer.java
  
  Index: IncludeXMLConsumer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/xml/IncludeXMLConsumer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IncludeXMLConsumer.java	9 Mar 2003 00:09:46 -0000	1.1
  +++ IncludeXMLConsumer.java	25 Sep 2003 12:55:02 -0000	1.2
  @@ -52,6 +52,8 @@
   
   import javax.xml.transform.Transformer;
   import javax.xml.transform.TransformerFactory;
  +import javax.xml.transform.TransformerException;
  +import javax.xml.transform.TransformerConfigurationException;
   import javax.xml.transform.dom.DOMSource;
   import javax.xml.transform.sax.SAXResult;
   import org.xml.sax.Attributes;
  @@ -110,7 +112,7 @@
   
       /**
        * Include a node into the current chain.
  -     * @param docfrag The DocumentFragment to be included
  +     * @param node The DOM Node to be included
        * @param contentHandler The SAX ContentHandler receiving the information
        * @param lexicalHandler The SAX LexicalHandler receiving the information (optional)
        */
  @@ -126,9 +128,9 @@
                   SAXResult result = new SAXResult(filter);
                   result.setLexicalHandler(filter);
                   transformer.transform(source, result);
  -            } catch (javax.xml.transform.TransformerConfigurationException e) {
  +            } catch (TransformerConfigurationException e) {
                   throw new SAXException("TransformerConfigurationException", e);
  -            } catch (javax.xml.transform.TransformerException e) {
  +            } catch (TransformerException e) {
                   throw new SAXException("TransformerException", e);
               }
           }
  @@ -183,23 +185,24 @@
   
       public void endElement(String uri, String local, String qName) throws SAXException
{
           this.ignoreRootElementCount--;
  -        if ( !this.ignoreRootElement  || this.ignoreRootElementCount > 0) {
  +        if (!this.ignoreRootElement  || this.ignoreRootElementCount > 0) {
               this.contentHandler.endElement(uri, local, qName);
           }
       }
   
       public void characters(char[] ch, int start, int end) throws SAXException {
  -
  -        if ( this.ignoreEmptyCharacters ) {
  +        if (this.ignoreEmptyCharacters) {
               String text = new String(ch, start, end).trim();
  -            if (text.length() > 0) this.contentHandler.characters(text.toCharArray(),0,text.length());
  +            if (text.length() > 0) {
  +                this.contentHandler.characters(text.toCharArray(),0,text.length());
  +            }
           } else {
               this.contentHandler.characters(ch, start, end);
           }
       }
   
       public void ignorableWhitespace(char[] ch, int start, int end) throws SAXException
{
  -        if ( !this.ignoreEmptyCharacters ) {
  +        if (!this.ignoreEmptyCharacters) {
               this.contentHandler.ignorableWhitespace(ch, start, end);
           }
       }
  @@ -224,28 +227,33 @@
       }
   
       public void startEntity(String name) throws SAXException {
  -        if(lexicalHandler != null)
  +        if (lexicalHandler != null) {
               lexicalHandler.startEntity(name);
  +        }
       }
   
       public void endEntity(String name) throws SAXException {
  -        if(lexicalHandler != null)
  +        if (lexicalHandler != null) {
               lexicalHandler.endEntity(name);
  +        }
       }
   
       public void startCDATA() throws SAXException {
  -        if(lexicalHandler != null)
  +        if (lexicalHandler != null) {
               lexicalHandler.startCDATA();
  +        }
       }
   
       public void endCDATA() throws SAXException {
  -        if(lexicalHandler != null)
  +        if (lexicalHandler != null) {
               lexicalHandler.endCDATA();
  +        }
       }
   
       public void comment(char ary[], int start, int length)
           throws SAXException {
  -        if(!inDTD && lexicalHandler != null)
  +        if (!inDTD && lexicalHandler != null) {
               lexicalHandler.comment(ary,start,length);
  +        }
       }
   }
  
  
  

Mime
View raw message