public class XMLDistributionReader
extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
XMLDistributionReader() |
Modifier and Type | Method and Description |
---|---|
Distribution |
parseXML(java.io.InputStream is)
Reads an XML representation of a Distribution from a file.
|
void |
startElement(java.lang.String nameSpaceURI,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes attributes)
Required by SAXParser to be public.
|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public Distribution parseXML(java.io.InputStream is) throws java.io.IOException, org.xml.sax.SAXException
is
- input in XML formatjava.io.IOException
- if an error occurs during reading.org.xml.sax.SAXException
- if the XML is not as expected.public void startElement(java.lang.String nameSpaceURI, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
It is not reccomended that you use this method directly. Use ParseXML instead.
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException