Package org.apache.cxf.staxutils
Class StreamWriterContentHandler
- java.lang.Object
-
- org.apache.cxf.staxutils.StreamWriterContentHandler
-
- All Implemented Interfaces:
ContentHandler
,LexicalHandler
public class StreamWriterContentHandler extends Object implements ContentHandler, LexicalHandler
-
-
Constructor Summary
Constructors Constructor Description StreamWriterContentHandler(XMLStreamWriter w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
Method characters.void
comment(char[] ch, int start, int length)
void
endCDATA()
void
endDocument()
Method endDocument.void
endDTD()
void
endElement(String namespaceURI, String localName, String qName)
Method endElement.void
endEntity(String name)
void
endPrefixMapping(String prefix)
Method endPrefixMapping.void
ignorableWhitespace(char[] ch, int start, int length)
Method ignorableWhitespace.void
processingInstruction(String target, String data)
Method processingInstruction.void
setDocumentLocator(Locator locator)
Method setDocumentLocator.void
skippedEntity(String name)
Method skippedEntity.void
startCDATA()
void
startDocument()
Method startDocument.void
startDTD(String name, String publicId, String systemId)
void
startElement(String namespaceURI, String localName, String qName, Attributes atts)
Method startElement.void
startEntity(String name)
void
startPrefixMapping(String prefix, String uri)
Method startPrefixMapping.
-
-
-
Constructor Detail
-
StreamWriterContentHandler
public StreamWriterContentHandler(XMLStreamWriter w)
-
-
Method Detail
-
endDocument
public void endDocument() throws SAXException
Method endDocument.- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXException
Method startDocument.- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
Method characters.- Specified by:
characters
in interfaceContentHandler
- Parameters:
ch
-start
-length
-- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
Method ignorableWhitespace.- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Parameters:
ch
-start
-length
-- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
Method endPrefixMapping.- Specified by:
endPrefixMapping
in interfaceContentHandler
- Parameters:
prefix
-- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String name) throws SAXException
Method skippedEntity.- Specified by:
skippedEntity
in interfaceContentHandler
- Parameters:
name
-- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
Method setDocumentLocator.- Specified by:
setDocumentLocator
in interfaceContentHandler
- Parameters:
locator
-
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
Method processingInstruction.- Specified by:
processingInstruction
in interfaceContentHandler
- Parameters:
target
-data
-- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
Method startPrefixMapping.- Specified by:
startPrefixMapping
in interfaceContentHandler
- Parameters:
prefix
-uri
-- Throws:
SAXException
-
endElement
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
Method endElement.- Specified by:
endElement
in interfaceContentHandler
- Parameters:
namespaceURI
-localName
-qName
-- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
Method startElement.- Specified by:
startElement
in interfaceContentHandler
- Parameters:
namespaceURI
-localName
-qName
-atts
-- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
-