org.springframework.xml.stream
Class StaxStreamContentHandler
java.lang.Object
org.springframework.xml.stream.AbstractStaxContentHandler
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.