public class DefaultSiteParser extends DefaultHandler
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Constructor and Description |
|---|
DefaultSiteParser()
Constructs a site parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Handle character text
|
void |
endElement(String uri,
String localName,
String qName)
Handle end of element tags
|
void |
error(SAXParseException ex)
Handle errors
|
void |
fatalError(SAXParseException ex)
Handle fatal errors
|
MultiStatus |
getStatus()
Returns all status objects accumulated by the parser.
|
void |
init(SiteModelFactory factory) |
SiteModel |
parse(InputStream in)
Parses the specified input steam and constructs a site model.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Handle start of element tags
|
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic void init(SiteModelFactory factory)
public SiteModel parse(InputStream in) throws SAXException, IOException
in - input streamSAXExceptionIOExceptionpublic MultiStatus getStatus()
null.public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionDefaultHandler.startElement(String, String, String, Attributes)public void endElement(String uri, String localName, String qName)
endElement in interface ContentHandlerendElement in class DefaultHandlerDefaultHandler.endElement(String, String, String)public void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandlerDefaultHandler.characters(char[], int, int)public void error(SAXParseException ex)
error in interface ErrorHandlererror in class DefaultHandlerDefaultHandler.error(SAXParseException)public void fatalError(SAXParseException ex) throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXExceptionDefaultHandler.fatalError(SAXParseException)Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.