|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--gate.xml.GateFormatXmlDocumentHandler
Implements the behaviour of the XML reader. This is the reader for Gate Xml documents saved with DocumentImplementation.toXml() method.
Constructor Summary | |
GateFormatXmlDocumentHandler(Document aDocument)
|
Method Summary | |
void |
addStatusListener(StatusListener listener)
This methos is called when a listener is registered with this class |
void |
characters(char[] text,
int start,
int length)
This method is called when the SAX parser encounts text in the XML doc. |
void |
comment(String text)
This method is called when the SAX parser encounts a comment It works only if the XmlDocumentHandler implements a com.sun.parser.LexicalEventListener |
void |
endCDATA()
This method is called when the SAX parser encounts the end of a CDATA section. |
void |
endDocument()
This method is called when the SAX parser encounts the end of the XML document. |
void |
endElement(String uri,
String qName,
String elemName)
This method is called when the SAX parser encounts the end of an XML element. |
void |
endParsedEntity(String name,
boolean included)
This method is called when the SAX parser encounts a parsed entity and informs the application if that entity was parsed or not It's working only if the CustomDocumentHandler implements a com.sun.parser.LexicalEventListener |
void |
error(org.xml.sax.SAXParseException ex)
Error method.We deal with this exception inside SimpleErrorHandler class |
void |
fatalError(org.xml.sax.SAXParseException ex)
FatalError method. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
This method is called when the SAX parser encounts white spaces |
void |
removeStatusListener(StatusListener listener)
This methos is called when a listener is removed |
void |
startCDATA()
This method is called when the SAX parser encounts a start of a CDATA section It works only if the XmlDocumentHandler implements a com.sun.parser.LexicalEventListener |
void |
startDocument()
This method is called when the SAX parser encounts the beginning of the XML document. |
void |
startElement(String uri,
String qName,
String elemName,
org.xml.sax.Attributes atts)
This method is called when the SAX parser encounts the beginning of an XML element. |
void |
startParsedEntity(String name)
This method is called when the SAX parser encounts a parsed Entity It works only if the XmlDocumentHandler implements a com.sun.parser.LexicalEventListener |
void |
warning(org.xml.sax.SAXParseException ex)
Warning method comment. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GateFormatXmlDocumentHandler(Document aDocument)
Method Detail |
public void startDocument() throws org.xml.sax.SAXException
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void endDocument() throws org.xml.sax.SAXException
endDocument
in class org.xml.sax.helpers.DefaultHandler
public void startElement(String uri, String qName, String elemName, org.xml.sax.Attributes atts)
startElement
in class org.xml.sax.helpers.DefaultHandler
public void endElement(String uri, String qName, String elemName) throws org.xml.sax.SAXException
endElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] text, int start, int length) throws org.xml.sax.SAXException
characters
in class org.xml.sax.helpers.DefaultHandler
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in class org.xml.sax.helpers.DefaultHandler
public void error(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
error
in class org.xml.sax.helpers.DefaultHandler
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
fatalError
in class org.xml.sax.helpers.DefaultHandler
public void warning(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
warning
in class org.xml.sax.helpers.DefaultHandler
public void comment(String text) throws org.xml.sax.SAXException
public void startCDATA() throws org.xml.sax.SAXException
public void endCDATA() throws org.xml.sax.SAXException
public void startParsedEntity(String name) throws org.xml.sax.SAXException
public void endParsedEntity(String name, boolean included) throws org.xml.sax.SAXException
public void addStatusListener(StatusListener listener)
public void removeStatusListener(StatusListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |