Class BlastXMLParserFacade
java.lang.Object
org.biojava.bio.program.sax.blastxml.BlastXMLParserFacade
- All Implemented Interfaces:
XMLReader
A facade class that wraps the NCBI Blast XML
parsing framework in a more user-friendly form.
It is identical to BlastlikeSAXParser in use.
- Since:
- 1.3
- Author:
- David Huen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncorrect this laterThis class has an EntityResolver that resolves the public ID specifying the NCBI DTDs to resource files within the BioJava libraries.booleangetFeature(String name) getProperty(String name) voidvoidparse(InputSource is) voidsetContentHandler(ContentHandler handler) this sets the ContentHandler that receives SAX events from the internal Blast XML parser which is the actual ContentHandler.voidsetDTDHandler(DTDHandler handler) voidsetEntityResolver(EntityResolver resolver) This class has an EntityResolver that resolves the public ID specifying the NCBI DTDs to resource files within the BioJava libraries.voidsetErrorHandler(ErrorHandler handler) voidsetFeature(String key, boolean value) by default, we set the parser to non-validating.voidsetProperty(String key, Object value)
-
Constructor Details
-
BlastXMLParserFacade
- Throws:
BioException
-
-
Method Details
-
getContentHandler
correct this later- Specified by:
getContentHandlerin interfaceXMLReader
-
getDTDHandler
- Specified by:
getDTDHandlerin interfaceXMLReader
-
getEntityResolver
This class has an EntityResolver that resolves the public ID specifying the NCBI DTDs to resource files within the BioJava libraries. This call will return that resolver. It you should set your own resolver, ensure you resolve that URN yourself or the parser will blow up on you!.- Specified by:
getEntityResolverin interfaceXMLReader
-
getErrorHandler
- Specified by:
getErrorHandlerin interfaceXMLReader
-
getFeature
- Specified by:
getFeaturein interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
getProperty
- Specified by:
getPropertyin interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
parse
- Specified by:
parsein interfaceXMLReader- Throws:
IOExceptionSAXException
-
parse
- Specified by:
parsein interfaceXMLReader- Throws:
IOExceptionSAXException
-
setContentHandler
this sets the ContentHandler that receives SAX events from the internal Blast XML parser which is the actual ContentHandler. It will not change the internal Blast XML parser.- Specified by:
setContentHandlerin interfaceXMLReader
-
setDTDHandler
- Specified by:
setDTDHandlerin interfaceXMLReader
-
setEntityResolver
This class has an EntityResolver that resolves the public ID specifying the NCBI DTDs to resource files within the BioJava libraries. This call will return that resolver. It you should set your own resolver, ensure you resolve that URN yourself or the parser will blow up on you!.- Specified by:
setEntityResolverin interfaceXMLReader
-
setErrorHandler
- Specified by:
setErrorHandlerin interfaceXMLReader
-
setFeature
public void setFeature(String key, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException by default, we set the parser to non-validating. change it if you wish/dare! The parser is also set to be namespace aware. DO NOT CHANGE THAT!!!- Specified by:
setFeaturein interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setProperty
public void setProperty(String key, Object value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setPropertyin interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-