Class ModuleInfoParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.inductiveautomation.ignition.common.modules.ModuleInfoParser
- All Implemented Interfaces:
- ContentHandler,- DTDHandler,- EntityResolver,- ErrorHandler
This class parses the module descriptor file.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String name) static ModuleInfofromXML(InputStream is) Parses the given XML file, returning theModuleInfoobject represented within.voidstartElement(String uri, String localName, String name, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandlerendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandlerdeclaration
- 
Constructor Details- 
ModuleInfoParserpublic ModuleInfoParser()
 
- 
- 
Method Details- 
getModule
- 
characters- Specified by:
- charactersin interface- ContentHandler
- Overrides:
- charactersin class- DefaultHandler
- Throws:
- SAXException
 
- 
endElement- Specified by:
- endElementin interface- ContentHandler
- Overrides:
- endElementin class- DefaultHandler
- Throws:
- SAXException
 
- 
startElementpublic void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException - Specified by:
- startElementin interface- ContentHandler
- Overrides:
- startElementin class- DefaultHandler
- Throws:
- SAXException
 
- 
fromXMLParses the given XML file, returning theModuleInfoobject represented within.- Parameters:
- is-- InputStreamto read from.
- Returns:
- a ModuleInfoparsed from the XMLInputStream.
- Throws:
- SAXException
- IOException
 
 
-