|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.icl.saxon.ContentEmitter
public class ContentEmitter
ContentEmitter is a glue class that provides a standard SAX ContentHandler interface to a Saxon Emitter. 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 |
setEmitter(Emitter e)
|
void |
setNamePool(NamePool namePool)
|
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 setEmitter(Emitter 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)
startPrefixMapping in interface ContentHandlerpublic void endPrefixMapping(String prefix)
endPrefixMapping in interface ContentHandler
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)
characters in interface ContentHandler
public void ignorableWhitespace(char[] ch,
int start,
int length)
ignorableWhitespace in interface ContentHandler
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 LexicalHandlerSAXExceptionpublic void skippedEntity(String name)
skippedEntity in interface ContentHandler
public void startDTD(String name,
String publicId,
String systemId)
startDTD in interface LexicalHandlerpublic void endDTD()
endDTD in interface LexicalHandlerpublic void startEntity(String name)
startEntity in interface LexicalHandlerpublic void endEntity(String name)
endEntity in interface LexicalHandlerpublic void startCDATA()
startCDATA in interface LexicalHandlerpublic void endCDATA()
endCDATA in interface LexicalHandler
public void notationDecl(String name,
String publicId,
String systemId)
notationDecl in interface DTDHandler
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 | ||||||||