|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.biojava.bio.dist.XMLDistributionReader
A SAX parser that reads an XML representation of a Distribution from a file and recreates it as a Distribution Object. Handles OrderNDistributions and Simple Distributions but ensure the OrderNDistributions being read in was made using conditioning and conditioned Alphabets.
Constructor Summary | |
XMLDistributionReader()
|
Method Summary | |
Distribution |
parseXML(java.io.InputStream is)
Reads an XML representation of a Distribution from a file |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Required by SAXParser to be public. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLDistributionReader()
Method Detail |
public Distribution parseXML(java.io.InputStream is) throws java.io.IOException, org.xml.sax.SAXException
is
- input in XML format
java.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 uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |