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 voidcharacters(char[] ch, int start, int length)Method characters.voidcomment(char[] ch, int start, int length)voidendCDATA()voidendDocument()Method endDocument.voidendDTD()voidendElement(String namespaceURI, String localName, String qName)Method endElement.voidendEntity(String name)voidendPrefixMapping(String prefix)Method endPrefixMapping.voidignorableWhitespace(char[] ch, int start, int length)Method ignorableWhitespace.voidprocessingInstruction(String target, String data)Method processingInstruction.voidsetDocumentLocator(Locator locator)Method setDocumentLocator.voidskippedEntity(String name)Method skippedEntity.voidstartCDATA()voidstartDocument()Method startDocument.voidstartDTD(String name, String publicId, String systemId)voidstartElement(String namespaceURI, String localName, String qName, Attributes atts)Method startElement.voidstartEntity(String name)voidstartPrefixMapping(String prefix, String uri)Method startPrefixMapping.
-
-
-
Constructor Detail
-
StreamWriterContentHandler
public StreamWriterContentHandler(XMLStreamWriter w)
-
-
Method Detail
-
endDocument
public void endDocument() throws SAXExceptionMethod endDocument.- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXExceptionMethod startDocument.- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXExceptionMethod characters.- Specified by:
charactersin interfaceContentHandler- Parameters:
ch-start-length-- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXExceptionMethod ignorableWhitespace.- Specified by:
ignorableWhitespacein interfaceContentHandler- Parameters:
ch-start-length-- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
Method endPrefixMapping.- Specified by:
endPrefixMappingin interfaceContentHandler- Parameters:
prefix-- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String name) throws SAXException
Method skippedEntity.- Specified by:
skippedEntityin interfaceContentHandler- Parameters:
name-- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
Method setDocumentLocator.- Specified by:
setDocumentLocatorin interfaceContentHandler- Parameters:
locator-
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
Method processingInstruction.- Specified by:
processingInstructionin interfaceContentHandler- Parameters:
target-data-- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
Method startPrefixMapping.- Specified by:
startPrefixMappingin interfaceContentHandler- Parameters:
prefix-uri-- Throws:
SAXException
-
endElement
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
Method endElement.- Specified by:
endElementin 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:
startElementin interfaceContentHandler- Parameters:
namespaceURI-localName-qName-atts-- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
-