public class ModuleInfoParser
extends org.xml.sax.helpers.DefaultHandler
| Constructor and Description |
|---|
ModuleInfoParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name) |
static ModuleInfo |
fromXML(java.io.InputStream is)
Parses the given XML file, returning the
ModuleInfo object represented within. |
ModuleInfo |
getModule() |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes attributes) |
public ModuleInfo getModule()
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
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.SAXExceptionpublic static ModuleInfo fromXML(java.io.InputStream is) throws org.xml.sax.SAXException, java.io.IOException
ModuleInfo object represented within.is - InputStream to read from.ModuleInfo parsed from the XML InputStream.org.xml.sax.SAXExceptionjava.io.IOException