Class StreamWriterToContentHandlerConverter
- java.lang.Object
-
- org.apache.axiom.om.impl.serialize.StreamWriterToContentHandlerConverter
-
- All Implemented Interfaces:
ContentHandler
public class StreamWriterToContentHandlerConverter extends Object implements ContentHandler
Class StreamWriterToContentHandlerConverter
-
-
Constructor Summary
Constructors Constructor Description StreamWriterToContentHandlerConverter(XMLStreamWriter writer)Constructor StreamWriterToContentHandlerConverter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)Method characters.voidendDocument()Method endDocument.voidendElement(String namespaceURI, String localName, String qName)Method endElement.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.voidstartDocument()Method startDocument.voidstartElement(String namespaceURI, String localName, String qName, Attributes atts)Method startElement.voidstartPrefixMapping(String prefix, String uri)Method startPrefixMapping.
-
-
-
Constructor Detail
-
StreamWriterToContentHandlerConverter
public StreamWriterToContentHandlerConverter(XMLStreamWriter writer)
Constructor StreamWriterToContentHandlerConverter.- Parameters:
writer-
-
-
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
-
-