|
|||||||||
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.BufferEmitter
public class BufferEmitter
This class implements a buffer for storing SAX events.
Field Summary | |
---|---|
private Vector |
buffer
the event buffer |
private boolean |
charsEmitted
characters flag, needed for detecting empty CDATA sections |
private SAXEvent[] |
eventArray
the event array, the old contents remains valid until this buffer is completely new filled |
private boolean |
insideCDATA
CDATA flag |
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 | |
---|---|
BufferEmitter()
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
clear()
Clears the event buffer |
void |
comment(char[] ch,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
do nothing |
void |
endDTD()
not used |
void |
endElement(String namespaceURI,
String localName,
String qName)
|
void |
endEntity(String name)
not used |
void |
endPrefixMapping(String prefix)
|
void |
filled()
Signals that the buffer is completely filled; makes its contents available to getEvents() |
SAXEvent[] |
getEvents()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
not used |
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(Locator locator)
not used |
void |
skippedEntity(String name)
not used |
void |
startCDATA()
|
void |
startDocument()
do nothing |
void |
startDTD(String name,
String publicId,
String systemId)
not used |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
startEntity(String name)
not used |
void |
startPrefixMapping(String prefix,
String uri)
|
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 Vector buffer
private SAXEvent[] eventArray
private boolean insideCDATA
private boolean charsEmitted
Constructor Detail |
---|
public BufferEmitter()
Method Detail |
---|
public SAXEvent[] getEvents()
public void clear()
public void filled()
getEvents()
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 |