org.codehaus.activesoap.util
Class LoggingXMLStreamWriter

java.lang.Object
  extended byorg.codehaus.activesoap.util.DelegateXMLStreamWriter
      extended byorg.codehaus.activesoap.util.LoggingXMLStreamWriter
All Implemented Interfaces:
XMLStreamWriter

public class LoggingXMLStreamWriter
extends DelegateXMLStreamWriter

An implementation of XMLStreamWriter which will log calls to start/end element which can be very useful for debugging StAX related issues.

Version:
$Revision: 1.2 $

Constructor Summary
LoggingXMLStreamWriter(XMLStreamWriter delegate)
           
LoggingXMLStreamWriter(XMLStreamWriter delegate, Log log)
           
 
Method Summary
 void writeEndDocument()
           
 void writeEndElement()
           
 void writeStartDocument()
           
 void writeStartDocument(String s)
           
 void writeStartDocument(String s, String s1)
           
 void writeStartElement(String s)
           
 void writeStartElement(String s, String s1)
           
 void writeStartElement(String s, String s1, String s2)
           
 
Methods inherited from class org.codehaus.activesoap.util.DelegateXMLStreamWriter
close, flush, getNamespaceContext, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingXMLStreamWriter

public LoggingXMLStreamWriter(XMLStreamWriter delegate)

LoggingXMLStreamWriter

public LoggingXMLStreamWriter(XMLStreamWriter delegate,
                              Log log)
Method Detail

writeStartDocument

public void writeStartDocument()
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Overrides:
writeStartDocument in class DelegateXMLStreamWriter
Throws:
XMLStreamException

writeStartDocument

public void writeStartDocument(String s)
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Overrides:
writeStartDocument in class DelegateXMLStreamWriter
Throws:
XMLStreamException

writeStartDocument

public void writeStartDocument(String s,
                               String s1)
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Overrides:
writeStartDocument in class DelegateXMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String s)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Overrides:
writeStartElement in class DelegateXMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String s,
                              String s1)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Overrides:
writeStartElement in class DelegateXMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String s,
                              String s1,
                              String s2)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Overrides:
writeStartElement in class DelegateXMLStreamWriter
Throws:
XMLStreamException

writeEndElement

public void writeEndElement()
                     throws XMLStreamException
Specified by:
writeEndElement in interface XMLStreamWriter
Overrides:
writeEndElement in class DelegateXMLStreamWriter
Throws:
XMLStreamException

writeEndDocument

public void writeEndDocument()
                      throws XMLStreamException
Specified by:
writeEndDocument in interface XMLStreamWriter
Overrides:
writeEndDocument in class DelegateXMLStreamWriter
Throws:
XMLStreamException


Copyright © 2004-2007 LogicBlaze, Inc.. All Rights Reserved.