|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.event.ContentEmitter
public class ContentEmitter
ContentEmitter is a glue class that provides a standard SAX ContentHandler interface to a Saxon Receiver. To achieve this it needs to map names supplied as strings to numeric name codes, for which purpose it needs access to a name pool. The class also performs the function of assembling adjacent text nodes.
| Constructor Summary | |
|---|---|
ContentEmitter()
create a ContentEmitter and initialise variables |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Callback interface for SAX: not for application use |
void |
comment(char[] ch,
int start,
int length)
Callback interface for SAX (part of LexicalHandler interface): not for application use |
void |
endCDATA()
|
void |
endDocument()
Callback interface for SAX: not for application use |
void |
endDTD()
Register the end of the DTD. |
void |
endElement(String uri,
String localname,
String rawname)
Callback interface for SAX: not for application use |
void |
endEntity(String name)
|
void |
endPrefixMapping(String prefix)
Callback interface for SAX: not for application use |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Callback interface for SAX: not for application use |
void |
notationDecl(String name,
String publicId,
String systemId)
|
void |
processingInstruction(String name,
String remainder)
Callback interface for SAX: not for application use |
void |
setDocumentLocator(Locator locator)
Callback interface for SAX: not for application use |
void |
setNamePool(NamePool namePool)
|
void |
setReceiver(Receiver e)
|
void |
skippedEntity(String name)
|
void |
startCDATA()
|
void |
startDocument()
Callback interface for SAX: not for application use |
void |
startDTD(String name,
String publicId,
String systemId)
Register the start of the DTD. |
void |
startElement(String uri,
String localname,
String rawname,
Attributes atts)
Callback interface for SAX: not for application use |
void |
startEntity(String name)
|
void |
startPrefixMapping(String prefix,
String uri)
Callback interface for SAX: not for application use |
void |
unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentEmitter()
| Method Detail |
|---|
public void setReceiver(Receiver e)
public void setNamePool(NamePool namePool)
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandler
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
public void startElement(String uri,
String localname,
String rawname,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerSAXException
public void endElement(String uri,
String localname,
String rawname)
throws SAXException
endElement in interface ContentHandlerSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXException
public void processingInstruction(String name,
String remainder)
throws SAXException
processingInstruction in interface ContentHandlerSAXException
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXException
public void skippedEntity(String name)
throws SAXException
skippedEntity in interface ContentHandlerSAXException
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
startDTD in interface LexicalHandlerSAXException
public void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXException
public void startEntity(String name)
throws SAXException
startEntity in interface LexicalHandlerSAXException
public void endEntity(String name)
throws SAXException
endEntity in interface LexicalHandlerSAXException
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXException
public void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXException
public void notationDecl(String name,
String publicId,
String systemId)
throws SAXException
notationDecl in interface DTDHandlerSAXException
public void unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName)
throws SAXException
unparsedEntityDecl in interface DTDHandlerSAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||