|
|||||||||
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(Name name)
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 |
setEscaping(boolean escaping)
Switch escaping on or off. |
void |
setOutputDetails(OutputDetails details)
Set output details. |
void |
setWriter(java.io.Writer writer)
Set the Writer to be used. |
void |
startDocument()
Notify document start |
void |
startElement(Name name,
AttributeCollection attributes)
Output an element start tag. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Start a namespace prefix mapping. |
Method Detail |
public void startDocument() throws org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
public void startElement(Name name, AttributeCollection attributes) throws org.xml.sax.SAXException
public void endElement(Name name) throws org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) 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 output
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |