|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.output.DOMEmitter
DOMEmitter is an Emitter that attaches the result tree to a specified Node in a DOM Document
Field Summary | |
protected org.w3c.dom.Node |
currentNode
|
protected org.w3c.dom.Document |
document
|
protected NamePool |
namePool
|
protected OutputDetails |
outputDetails
|
Constructor Summary | |
DOMEmitter()
|
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Character data. |
void |
comment(char[] ch,
int start,
int length)
Handle a comment. |
void |
endDocument()
End of the document. |
void |
endElement(int nameCode)
End of an element. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Handle a processing instruction. |
void |
setCharacterSet(CharacterSet charSet)
Set the character set to use. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Set Document Locator. |
void |
setEscaping(boolean escaping)
Set escaping on or off: ignored in this Emitter |
void |
setNamePool(NamePool pool)
Set the name pool to be used for all name codes |
void |
setOutputDetails(OutputDetails details)
Set output details |
void |
setUnparsedEntity(java.lang.String name,
java.lang.String uri)
Set the URI for an unparsed entity in the document. |
void |
setWriter(java.io.Writer writer)
Set the Writer to use. |
void |
startDocument()
Start of the document. |
void |
startElement(int nameCode,
org.xml.sax.Attributes attributes,
int[] namespaces,
int nscount)
Start of an element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected OutputDetails outputDetails
protected org.w3c.dom.Node currentNode
protected org.w3c.dom.Document document
protected NamePool namePool
Constructor Detail |
public DOMEmitter()
Method Detail |
public void setNamePool(NamePool pool)
setNamePool
in interface Emitter
public void setWriter(java.io.Writer writer)
setWriter
in interface Emitter
public void setCharacterSet(CharacterSet charSet)
setCharacterSet
in interface Emitter
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface Emitter
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface Emitter
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface Emitter
public void startElement(int nameCode, org.xml.sax.Attributes attributes, int[] namespaces, int nscount) throws org.xml.sax.SAXException
startElement
in interface Emitter
com.icl.saxon.output.Emitter
namespaces
- Array of namespace codes identifying the namespace prefix/uri
pairs associated with this elementnscount
- Number of significant entries within namespaces arraypublic void endElement(int nameCode) throws org.xml.sax.SAXException
endElement
in interface Emitter
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface Emitter
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface Emitter
public void comment(char[] ch, int start, int length) throws org.xml.sax.SAXException
comment
in interface Emitter
public void setOutputDetails(OutputDetails details)
setOutputDetails
in interface Emitter
com.icl.saxon.output.Emitter
details
- The details of the required outputpublic void setEscaping(boolean escaping)
setEscaping
in interface Emitter
public void setUnparsedEntity(java.lang.String name, java.lang.String uri) throws org.xml.sax.SAXException
setUnparsedEntity
in interface Emitter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |