public class BlastXMLParserFacade
extends java.lang.Object
implements org.xml.sax.XMLReader
| Constructor and Description |
|---|
BlastXMLParserFacade() |
| Modifier and Type | Method and Description |
|---|---|
org.xml.sax.ContentHandler |
getContentHandler()
correct this later
|
org.xml.sax.DTDHandler |
getDTDHandler() |
org.xml.sax.EntityResolver |
getEntityResolver()
This class has an EntityResolver that
resolves the public ID specifying the
NCBI DTDs to resource files within the
BioJava libraries.
|
org.xml.sax.ErrorHandler |
getErrorHandler() |
boolean |
getFeature(java.lang.String name) |
java.lang.Object |
getProperty(java.lang.String name) |
void |
parse(org.xml.sax.InputSource is) |
void |
parse(java.lang.String systemId) |
void |
setContentHandler(org.xml.sax.ContentHandler handler)
this sets the ContentHandler that receives
SAX events from the internal Blast XML parser which
is the actual ContentHandler.
|
void |
setDTDHandler(org.xml.sax.DTDHandler handler) |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
This class has an EntityResolver that
resolves the public ID specifying the
NCBI DTDs to resource files within the
BioJava libraries.
|
void |
setErrorHandler(org.xml.sax.ErrorHandler handler) |
void |
setFeature(java.lang.String key,
boolean value)
by default, we set the parser to non-validating.
|
void |
setProperty(java.lang.String key,
java.lang.Object value) |
public BlastXMLParserFacade()
throws BioException
BioExceptionpublic org.xml.sax.ContentHandler getContentHandler()
getContentHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver in interface org.xml.sax.XMLReaderpublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler in interface org.xml.sax.XMLReaderpublic boolean getFeature(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getFeature in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getProperty in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic void parse(org.xml.sax.InputSource is)
throws java.io.IOException,
org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderjava.io.IOExceptionorg.xml.sax.SAXExceptionpublic void parse(java.lang.String systemId)
throws java.io.IOException,
org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderjava.io.IOExceptionorg.xml.sax.SAXExceptionpublic void setContentHandler(org.xml.sax.ContentHandler handler)
setContentHandler in interface org.xml.sax.XMLReaderpublic void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler in interface org.xml.sax.XMLReaderpublic void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver in interface org.xml.sax.XMLReaderpublic void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler in interface org.xml.sax.XMLReaderpublic void setFeature(java.lang.String key,
boolean value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setFeature in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic void setProperty(java.lang.String key,
java.lang.Object value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setProperty in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException