public class BlastXMLParserFacade extends Object implements XMLReader
| Constructor and Description |
|---|
BlastXMLParserFacade() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public BlastXMLParserFacade() throws BioException
BioExceptionpublic ContentHandler getContentHandler()
getContentHandler in interface XMLReaderpublic DTDHandler getDTDHandler()
getDTDHandler in interface XMLReaderpublic EntityResolver getEntityResolver()
getEntityResolver in interface XMLReaderpublic ErrorHandler getErrorHandler()
getErrorHandler in interface XMLReaderpublic boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void parse(InputSource is) throws IOException, SAXException
parse in interface XMLReaderIOExceptionSAXExceptionpublic void parse(String systemId) throws IOException, SAXException
parse in interface XMLReaderIOExceptionSAXExceptionpublic void setContentHandler(ContentHandler handler)
setContentHandler in interface XMLReaderpublic void setDTDHandler(DTDHandler handler)
setDTDHandler in interface XMLReaderpublic void setEntityResolver(EntityResolver resolver)
setEntityResolver in interface XMLReaderpublic void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface XMLReaderpublic void setFeature(String key, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setProperty(String key, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionCopyright © 2020 BioJava. All rights reserved.