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
BioException
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
Copyright © 2014 BioJava. All rights reserved.