|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Emitter: This interface defines methods that must be implemented by components that format SAXON output. There is one emitter for XML, one for HTML, and so on. Additional methods are concerned with setting options and providing a Writer.
The interface is deliberately designed to be as close as possible to the standard SAX DocumentHandler interface, however, it allows additional information to be made available.
Method Summary | |
void |
characters(char[] chars,
int start,
int len)
Output character data |
void |
comment(char[] chars,
int start,
int length)
Output a comment. |
void |
endDocument()
Notify document end |
void |
endElement(int nameCode)
Output an element end tag |
void |
processingInstruction(java.lang.String name,
java.lang.String data)
Output a processing instruction |
void |
setCharacterSet(CharacterSet charset)
Set the CharacterSet to be used. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Set locator, to identify position in the document. |
void |
setEscaping(boolean escaping)
Switch escaping on or off. |
void |
setNamePool(NamePool namePool)
Set the namePool in which all name codes can be found |
void |
setOutputDetails(OutputDetails details)
Set output details. |
void |
setUnparsedEntity(java.lang.String name,
java.lang.String uri)
Set unparsed entity URI Used only when supplying input from a parser. |
void |
setWriter(java.io.Writer writer)
Set the Writer to be used. |
void |
startDocument()
Notify document start |
void |
startElement(int nameCode,
org.xml.sax.Attributes attributes,
int[] namespaces,
int nscount)
Output an element start tag. |
Method Detail |
public void setNamePool(NamePool namePool)
public void startDocument() throws org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
public void startElement(int nameCode, org.xml.sax.Attributes attributes, int[] namespaces, int nscount) throws org.xml.sax.SAXException
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
public void characters(char[] chars, int start, int len) throws org.xml.sax.SAXException
public void processingInstruction(java.lang.String name, java.lang.String data) throws org.xml.sax.SAXException
public void comment(char[] chars, int start, int length) throws org.xml.sax.SAXException
public void setWriter(java.io.Writer writer) throws org.xml.sax.SAXException
public void setCharacterSet(CharacterSet charset) throws org.xml.sax.SAXException
public void setEscaping(boolean escaping) throws org.xml.sax.SAXException
public void setOutputDetails(OutputDetails details) throws org.xml.sax.SAXException
details
- The details of the required outputpublic void setDocumentLocator(org.xml.sax.Locator locator)
public void setUnparsedEntity(java.lang.String name, java.lang.String uri) throws org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |