avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mirceat...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/dom DefaultDOMSerializer.java
Date Tue, 03 Sep 2002 20:32:42 GMT
mirceatoma    2002/09/03 13:32:42

  Modified:    xmlutil/src/java/org/apache/excalibur/xml/dom
                        DefaultDOMSerializer.java
  Log:
  Format code.
  
  Revision  Changes    Path
  1.2       +13 -11    jakarta-avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/dom/DefaultDOMSerializer.java
  
  Index: DefaultDOMSerializer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/dom/DefaultDOMSerializer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultDOMSerializer.java	3 Sep 2002 20:26:59 -0000	1.1
  +++ DefaultDOMSerializer.java	3 Sep 2002 20:32:42 -0000	1.2
  @@ -20,7 +20,9 @@
   import org.apache.avalon.framework.logger.AbstractLogEnabled;
   import org.apache.avalon.framework.component.Component;
   
  -public class DefaultDOMSerializer extends AbstractLogEnabled implements DOMSerializer,
Component
  +public class DefaultDOMSerializer 
  +    extends AbstractLogEnabled 
  +    implements DOMSerializer, Component
   {    
       private final TransformerFactory m_factory = TransformerFactory.newInstance();
           
  @@ -29,21 +31,21 @@
           try 
           {
               final Transformer transformer = m_factory.newTransformer();
  -            final DOMSource source = new DOMSource(document);
  -            final SAXResult result = new SAXResult(contentHandler);
  -            result.setLexicalHandler(lexicalHandler);
  +            final DOMSource source = new DOMSource( document );
  +            final SAXResult result = new SAXResult( contentHandler );
  +            result.setLexicalHandler( lexicalHandler );
   
  -            transformer.transform(source, result);
  +            transformer.transform( source, result );
           }
  -        catch (TransformerConfigurationException e) 
  +        catch ( TransformerConfigurationException e ) 
           {
  -            getLogger().error("Cannot create transformer", e);
  -            throw new SAXException(e);
  +            getLogger().error( "Cannot create transformer", e );
  +            throw new SAXException( e );
           }
  -        catch (TransformerException e)
  +        catch ( TransformerException e )
           {
  -            getLogger().error("Cannot serialize document", e);
  -            throw new SAXException(e);
  +            getLogger().error( "Cannot serialize document", e );
  +            throw new SAXException( e );
           }
       }    
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message