public class SeqSimilarityAdapter extends Object implements ContentHandler
SeqSimilarityAdapter converts SAX events into method
calls on a SearchContentHandler implementation. The
SAX events should describe elements conforming to the BioJava
BlastLikeDataSetCollection DTD. A
BlastLikeSearchBuilder is supplied, implementing the
SearchContentHandler interface, which will create
SeqSimilaritySearchResults from the stream.| Constructor and Description |
|---|
SeqSimilarityAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int end) |
void |
endDocument() |
void |
endElement(String nsURI,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
SearchContentHandler |
getSearchContentHandler()
getSearchContentHandler gets the handler which
will recieve the method calls generated by the adapter. |
void |
ignorableWhitespace(char[] ch,
int start,
int end) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
setSearchContentHandler(SearchContentHandler scHandler)
setSearchContentHandler sets the handler which
will recieve the method calls generated by the adapter. |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String nsURI,
String localName,
String qName,
Attributes attrs) |
void |
startPrefixMapping(String prefix,
String uri) |
public SeqSimilarityAdapter()
public SearchContentHandler getSearchContentHandler()
getSearchContentHandler gets the handler which
will recieve the method calls generated by the adapter.SearchContentHandler.public void setSearchContentHandler(SearchContentHandler scHandler)
setSearchContentHandler sets the handler which
will recieve the method calls generated by the adapter.scHandler - a SearchContentHandler.public void startDocument() throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument() throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void characters(char[] ch, int start, int end) throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch, int start, int end) throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void startElement(String nsURI, String localName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String nsURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionCopyright © 2020 BioJava. All rights reserved.