|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.program.sax.blastxml.BlastXMLParserFacade
public class BlastXMLParserFacade
A facade class that wraps the NCBI Blast XML parsing framework in a more user-friendly form. It is identical to BlastlikeSAXParser in use.
Constructor Summary | |
---|---|
BlastXMLParserFacade()
|
Method Summary | |
---|---|
ContentHandler |
getContentHandler()
correct this later |
DTDHandler |
getDTDHandler()
|
EntityResolver |
getEntityResolver()
This class has an EntityResolver that resolves the public ID specifying the NCBI DTDs to resource files within the BioJava libraries. |
ErrorHandler |
getErrorHandler()
|
boolean |
getFeature(String name)
|
Object |
getProperty(String name)
|
void |
parse(InputSource is)
|
void |
parse(String systemId)
|
void |
setContentHandler(ContentHandler handler)
this sets the ContentHandler that receives SAX events from the internal Blast XML parser which is the actual ContentHandler. |
void |
setDTDHandler(DTDHandler handler)
|
void |
setEntityResolver(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(ErrorHandler handler)
|
void |
setFeature(String key,
boolean value)
by default, we set the parser to non-validating. |
void |
setProperty(String key,
Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlastXMLParserFacade() throws BioException
BioException
Method Detail |
---|
public ContentHandler getContentHandler()
getContentHandler
in interface XMLReader
public DTDHandler getDTDHandler()
getDTDHandler
in interface XMLReader
public EntityResolver getEntityResolver()
getEntityResolver
in interface XMLReader
public ErrorHandler getErrorHandler()
getErrorHandler
in interface XMLReader
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void parse(InputSource is) throws IOException, SAXException
parse
in interface XMLReader
IOException
SAXException
public void parse(String systemId) throws IOException, SAXException
parse
in interface XMLReader
IOException
SAXException
public void setContentHandler(ContentHandler handler)
setContentHandler
in interface XMLReader
public void setDTDHandler(DTDHandler handler)
setDTDHandler
in interface XMLReader
public void setEntityResolver(EntityResolver resolver)
setEntityResolver
in interface XMLReader
public void setErrorHandler(ErrorHandler handler)
setErrorHandler
in interface XMLReader
public void setFeature(String key, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setProperty(String key, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |