|
Eclipse Platform 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--org.eclipse.update.core.model.DefaultFeatureParser
Default feature parser. Parses the feature manifest file as defined by the platform. Defers to a model factory to create the actual concrete model objects. The update framework supplies two factory implementations:
Constructor Summary | |
DefaultFeatureParser()
Constructs a feature parser. |
Method Summary | |
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 |
ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
Receive notification of ignorable whitespace in element content. |
void |
init(FeatureModelFactory factory)
|
FeatureModel |
parse(InputStream in)
Parses the specified input steam and constructs a feature model. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Handle start of element tags |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultFeatureParser()
Method Detail |
public void init(FeatureModelFactory factory)
public FeatureModel parse(InputStream in) throws SAXException, IOException
in
- input stream
SAXException
IOException
public MultiStatus getStatus()
null
.public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
attributes
- The specified or defaulted attributes.
SAXException
- Any SAX exception, possibly
wrapping another exception.DefaultHandler.startElement(String, String, String, Attributes)
public void endElement(String uri, String localName, String qName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
DefaultHandler.endElement(String, String, String)
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- The characters.start
- The start position in the character array.length
- The number of characters to use from the
character array.DefaultHandler.characters(char[], int, int)
public void error(SAXParseException ex)
error
in interface ErrorHandler
error
in class DefaultHandler
ex
- The warning information encoded as an exception.DefaultHandler.error(SAXParseException)
public void fatalError(SAXParseException ex) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
ex
- The error information encoded as an exception.
SAXException
SAXException
- Any SAX exception, possibly
wrapping another exception.DefaultHandler.fatalError(SAXParseException)
public void ignorableWhitespace(char[] arg0, int arg1, int arg2) throws SAXException
DefaultHandler
By default, do nothing. Application writers may override this method to take specific actions for each chunk of ignorable whitespace (such as adding data to a node or buffer, or printing it to a file).
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class DefaultHandler
arg0
- The whitespace characters.arg1
- The start position in the character array.arg2
- The number of characters to use from the
character array.
SAXException
- Any SAX exception, possibly
wrapping another exception.org.xml.sax.ContentHandler#ignorableWhitespace(char, int, int)
|
Eclipse Platform 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |