public class ContentEmitter extends Object implements ContentHandler, LexicalHandler, DTDHandler
| Constructor and Description |
|---|
ContentEmitter()
create a ContentEmitter and initialise variables
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public ContentEmitter()
public void setEmitter(Emitter e)
public void setNamePool(NamePool namePool)
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void startPrefixMapping(String prefix, String uri)
startPrefixMapping in interface ContentHandlerpublic void endPrefixMapping(String prefix)
endPrefixMapping in interface ContentHandlerpublic void startElement(String uri, String localname, String rawname, Attributes atts) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String uri, String localname, String rawname) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlerpublic void ignorableWhitespace(char[] ch,
int start,
int length)
ignorableWhitespace in interface ContentHandlerpublic void processingInstruction(String name, String remainder) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXExceptionpublic void skippedEntity(String name)
skippedEntity in interface ContentHandlerpublic 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 LexicalHandlerpublic void notationDecl(String name, String publicId, String systemId)
notationDecl in interface DTDHandlerpublic void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException
unparsedEntityDecl in interface DTDHandlerSAXException