Spring Web Services Framework

org.springframework.xml.stream
Class StaxStreamContentHandler

java.lang.Object
  extended by org.springframework.xml.stream.AbstractStaxContentHandler
      extended by org.springframework.xml.stream.StaxStreamContentHandler
All Implemented Interfaces:
ContentHandler

public class StaxStreamContentHandler
extends AbstractStaxContentHandler

SAX ContentHandler that writes to a XMLStreamWriter.

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
XMLStreamWriter

Constructor Summary
StaxStreamContentHandler(XMLStreamWriter streamWriter)
          Constructs a new instance of the StaxStreamContentHandler that writes to the given XMLStreamWriter.
 
Method Summary
protected  void charactersInternal(char[] ch, int start, int length)
           
protected  void endDocumentInternal()
           
protected  void endElementInternal(QName name, SimpleNamespaceContext namespaceContext)
           
protected  void ignorableWhitespaceInternal(char[] ch, int start, int length)
           
protected  void processingInstructionInternal(String target, String data)
           
 void setDocumentLocator(Locator locator)
           
protected  void skippedEntityInternal(String name)
           
protected  void startDocumentInternal()
           
protected  void startElementInternal(QName name, Attributes attributes, SimpleNamespaceContext namespaceContext)
           
 
Methods inherited from class org.springframework.xml.stream.AbstractStaxContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaxStreamContentHandler

public StaxStreamContentHandler(XMLStreamWriter streamWriter)
Constructs a new instance of the StaxStreamContentHandler that writes to the given XMLStreamWriter.

Parameters:
streamWriter - the stream writer to write to
Method Detail

setDocumentLocator

public void setDocumentLocator(Locator locator)

charactersInternal

protected void charactersInternal(char[] ch,
                                  int start,
                                  int length)
                           throws XMLStreamException
Specified by:
charactersInternal in class AbstractStaxContentHandler
Throws:
XMLStreamException

endDocumentInternal

protected void endDocumentInternal()
                            throws XMLStreamException
Specified by:
endDocumentInternal in class AbstractStaxContentHandler
Throws:
XMLStreamException

endElementInternal

protected void endElementInternal(QName name,
                                  SimpleNamespaceContext namespaceContext)
                           throws XMLStreamException
Specified by:
endElementInternal in class AbstractStaxContentHandler
Throws:
XMLStreamException

ignorableWhitespaceInternal

protected void ignorableWhitespaceInternal(char[] ch,
                                           int start,
                                           int length)
                                    throws XMLStreamException
Specified by:
ignorableWhitespaceInternal in class AbstractStaxContentHandler
Throws:
XMLStreamException

processingInstructionInternal

protected void processingInstructionInternal(String target,
                                             String data)
                                      throws XMLStreamException
Specified by:
processingInstructionInternal in class AbstractStaxContentHandler
Throws:
XMLStreamException

skippedEntityInternal

protected void skippedEntityInternal(String name)
Specified by:
skippedEntityInternal in class AbstractStaxContentHandler

startDocumentInternal

protected void startDocumentInternal()
                              throws XMLStreamException
Specified by:
startDocumentInternal in class AbstractStaxContentHandler
Throws:
XMLStreamException

startElementInternal

protected void startElementInternal(QName name,
                                    Attributes attributes,
                                    SimpleNamespaceContext namespaceContext)
                             throws XMLStreamException
Specified by:
startElementInternal in class AbstractStaxContentHandler
Throws:
XMLStreamException

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.