public class XMLDistributionReader extends 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, warningpublic 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 ContentHandlerstartElement in class DefaultHandlerSAXExceptionCopyright © 2020 BioJava. All rights reserved.