org.exist.util.serializer
Class SAXSerializer
java.lang.Object
org.exist.util.serializer.SAXSerializer
- All Implemented Interfaces:
- Receiver, ContentHandler, LexicalHandler
public class SAXSerializer
- extends Object
- implements ContentHandler, LexicalHandler, Receiver
Method Summary |
void |
attribute(QName qname,
String value)
|
void |
cdataSection(char[] ch,
int start,
int len)
|
void |
characters(char[] ch,
int start,
int len)
|
void |
characters(CharSequence seq)
|
void |
comment(char[] ch,
int start,
int len)
|
void |
documentType(String name,
String publicId,
String systemId)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(QName qname)
|
void |
endElement(String namespaceURI,
String localName,
String qname)
|
void |
endEntity(String arg0)
|
void |
endPrefixMapping(String prefix)
|
Document |
getDocument()
|
Writer |
getWriter()
|
void |
highlightText(CharSequence seq)
|
void |
ignorableWhitespace(char[] ch,
int start,
int len)
|
void |
processingInstruction(String target,
String data)
|
void |
reset()
|
void |
setCurrentNode(StoredNode node)
|
void |
setDocumentLocator(Locator arg0)
|
void |
setOutput(Writer writer,
Properties properties)
|
void |
setReceiver(XMLWriter receiver)
|
void |
skippedEntity(String arg0)
|
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(String arg0,
String arg1,
String arg2)
|
void |
startElement(QName qname,
AttrList attribs)
|
void |
startElement(String namespaceURI,
String localName,
String qname,
Attributes attribs)
|
void |
startEntity(String arg0)
|
void |
startPrefixMapping(String prefix,
String namespaceURI)
|
SAXSerializer
public SAXSerializer()
SAXSerializer
public SAXSerializer(Writer writer,
Properties outputProperties)
setOutput
public void setOutput(Writer writer,
Properties properties)
getWriter
public Writer getWriter()
setReceiver
public void setReceiver(XMLWriter receiver)
reset
public void reset()
setDocumentLocator
public void setDocumentLocator(Locator arg0)
- Specified by:
setDocumentLocator
in interface ContentHandler
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface Receiver
- Specified by:
startDocument
in interface ContentHandler
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument
in interface Receiver
- Specified by:
endDocument
in interface ContentHandler
- Throws:
SAXException
startPrefixMapping
public void startPrefixMapping(String prefix,
String namespaceURI)
throws SAXException
- Specified by:
startPrefixMapping
in interface Receiver
- Specified by:
startPrefixMapping
in interface ContentHandler
- Throws:
SAXException
endPrefixMapping
public void endPrefixMapping(String prefix)
throws SAXException
- Specified by:
endPrefixMapping
in interface Receiver
- Specified by:
endPrefixMapping
in interface ContentHandler
- Throws:
SAXException
startElement
public void startElement(String namespaceURI,
String localName,
String qname,
Attributes attribs)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Throws:
SAXException
startElement
public void startElement(QName qname,
AttrList attribs)
throws SAXException
- Specified by:
startElement
in interface Receiver
- Throws:
SAXException
endElement
public void endElement(String namespaceURI,
String localName,
String qname)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Throws:
SAXException
endElement
public void endElement(QName qname)
throws SAXException
- Specified by:
endElement
in interface Receiver
- Throws:
SAXException
attribute
public void attribute(QName qname,
String value)
throws SAXException
- Specified by:
attribute
in interface Receiver
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int len)
throws SAXException
- Specified by:
characters
in interface ContentHandler
- Throws:
SAXException
characters
public void characters(CharSequence seq)
throws SAXException
- Specified by:
characters
in interface Receiver
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int len)
throws SAXException
- Specified by:
ignorableWhitespace
in interface ContentHandler
- Throws:
SAXException
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Specified by:
processingInstruction
in interface Receiver
- Specified by:
processingInstruction
in interface ContentHandler
- Throws:
SAXException
cdataSection
public void cdataSection(char[] ch,
int start,
int len)
throws SAXException
- Specified by:
cdataSection
in interface Receiver
- Throws:
SAXException
skippedEntity
public void skippedEntity(String arg0)
throws SAXException
- Specified by:
skippedEntity
in interface ContentHandler
- Throws:
SAXException
startDTD
public void startDTD(String arg0,
String arg1,
String arg2)
throws SAXException
- Specified by:
startDTD
in interface LexicalHandler
- Throws:
SAXException
endDTD
public void endDTD()
throws SAXException
- Specified by:
endDTD
in interface LexicalHandler
- Throws:
SAXException
documentType
public void documentType(String name,
String publicId,
String systemId)
throws SAXException
- Specified by:
documentType
in interface Receiver
- Throws:
SAXException
highlightText
public void highlightText(CharSequence seq)
- Specified by:
highlightText
in interface Receiver
startEntity
public void startEntity(String arg0)
throws SAXException
- Specified by:
startEntity
in interface LexicalHandler
- Throws:
SAXException
endEntity
public void endEntity(String arg0)
throws SAXException
- Specified by:
endEntity
in interface LexicalHandler
- Throws:
SAXException
startCDATA
public void startCDATA()
throws SAXException
- Specified by:
startCDATA
in interface LexicalHandler
- Throws:
SAXException
endCDATA
public void endCDATA()
throws SAXException
- Specified by:
endCDATA
in interface LexicalHandler
- Throws:
SAXException
comment
public void comment(char[] ch,
int start,
int len)
throws SAXException
- Specified by:
comment
in interface Receiver
- Specified by:
comment
in interface LexicalHandler
- Throws:
SAXException
setCurrentNode
public void setCurrentNode(StoredNode node)
- Specified by:
setCurrentNode
in interface Receiver
getDocument
public Document getDocument()
- Specified by:
getDocument
in interface Receiver
Copyright (C) Wolfgang Meier. All rights reserved.