public class XMLDistributionReader extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
XMLDistributionReader() |
Modifier and Type | Method and Description |
---|---|
Distribution |
parseXML(InputStream is)
Reads an XML representation of a Distribution from a file.
|
void |
startElement(String nameSpaceURI,
String localName,
String rawName,
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 XMLDistributionReader()
public Distribution parseXML(InputStream is) throws IOException, SAXException
is
- input in XML formatIOException
- if an error occurs during reading.SAXException
- if the XML is not as expected.public void startElement(String nameSpaceURI, String localName, String rawName, Attributes attributes) throws SAXException
It is not reccomended that you use this method directly. Use ParseXML instead.
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © 2014 BioJava. All rights reserved.