|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
xml.html.HtmlDocumentHandler
public class HtmlDocumentHandler
The CartDocumentHandler gets notification in the form of a call-back method. These call-backs are like the Listener model used for event handling. When a new element is encountered, for example, that creates a call-back. The call-backs are handled in the DocumentHandler:
| Constructor Summary | |
|---|---|
HtmlDocumentHandler()
|
|
| Method Summary | |
|---|---|
void |
characters(char[] buf,
int offset,
int len)
when characters are found, we add them to the string vector for latter use. |
void |
endDocument()
|
void |
endElement(java.lang.String URI,
java.lang.String localName,
java.lang.String qName)
|
AddressDataBase |
getAddressDataBase()
|
void |
ignorableWhitespace(char[] buf,
int offset,
int len)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
The processingInstruction is called back when a non XML declaration is made. |
void |
setDocumentLocator(org.xml.sax.Locator l)
The Locator instance must be used locally to identify the origin of a SAX event. |
void |
startDocument()
|
void |
startElement()
The AttributeList is not going to have any attributes in it for our example (i.e. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endPrefixMapping, error, fatalError, notationDecl, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlDocumentHandler()
| Method Detail |
|---|
public AddressDataBase getAddressDataBase()
public void setDocumentLocator(org.xml.sax.Locator l)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandler
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void startElement()
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void endElement(java.lang.String URI,
java.lang.String localName,
java.lang.String qName)
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] buf,
int offset,
int len)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandler
public void ignorableWhitespace(char[] buf,
int offset,
int len)
ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in class org.xml.sax.helpers.DefaultHandler
public void processingInstruction(java.lang.String target,
java.lang.String data)
processingInstruction in interface org.xml.sax.ContentHandlerprocessingInstruction in class org.xml.sax.helpers.DefaultHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||