|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.joost.emitter.StxEmitterBase
net.sf.joost.emitter.StringEmitter
public final class StringEmitter
This class implements an emitter that collects characters events
Field Summary | |
---|---|
private StringBuffer |
buffer
the string buffer |
private String |
errorInfo
additional info for error messages, null means:
don't report errors |
Fields inherited from interface net.sf.joost.Constants |
---|
DEBUG, DEFAULT_ENCODING, FEAT_NS, FEAT_NSPREFIX, FEATURE_URI_PREFIX, FUNC_NS, JOOST_EXT_NS, PR_ATTRIBUTES, PR_BUFFER, PR_CHILDREN, PR_CONTINUE, PR_ERROR, PR_SELF, PR_SIBLINGS, STX_NS |
Constructor Summary | |
---|---|
StringEmitter()
|
|
StringEmitter(StringBuffer buffer,
String errorInfo)
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Add the characters to the internal buffer |
void |
comment(char[] ch,
int start,
int length)
not allowed |
void |
endCDATA()
not allowed |
void |
endDocument()
do nothing |
void |
endDTD()
not used |
void |
endElement(String namespaceURI,
String localName,
String qName)
not allowed |
void |
endEntity(String name)
not used |
void |
endPrefixMapping(String prefix)
do nothing |
StringBuffer |
getBuffer()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
not used |
void |
processingInstruction(String target,
String data)
not allowed |
void |
setDocumentLocator(Locator locator)
not used |
void |
skippedEntity(String name)
not used |
void |
startCDATA()
not allowed |
void |
startDocument()
do nothing |
void |
startDTD(String name,
String publicId,
String systemId)
not used |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
not allowed |
void |
startEntity(String name)
not used |
void |
startPrefixMapping(String prefix,
String uri)
do nothing |
Methods inherited from class net.sf.joost.emitter.StxEmitterBase |
---|
getSystemId, setSystemId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private StringBuffer buffer
private String errorInfo
null
means:
don't report errors
Constructor Detail |
---|
public StringEmitter()
public StringEmitter(StringBuffer buffer, String errorInfo)
Method Detail |
---|
public StringBuffer getBuffer()
public void setDocumentLocator(Locator locator)
public void startDocument() throws SAXException
SAXException
public void endDocument() throws SAXException
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
SAXException
public void endPrefixMapping(String prefix) throws SAXException
SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
SAXException
public void processingInstruction(String target, String data) throws SAXException
SAXException
public void skippedEntity(String name) throws SAXException
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
SAXException
public void endDTD() throws SAXException
SAXException
public void startEntity(String name) throws SAXException
SAXException
public void endEntity(String name) throws SAXException
SAXException
public void startCDATA() throws SAXException
SAXException
public void endCDATA() throws SAXException
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |