Package org.biojava.bio.program.ssbind
Class SeqSimilarityAdapter
java.lang.Object
org.biojava.bio.program.ssbind.SeqSimilarityAdapter
- All Implemented Interfaces:
ContentHandler
A
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.- Since:
- 1.2
- Author:
- Keith James
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int end) voidvoidendElement(String nsURI, String localName, String qName) voidendPrefixMapping(String prefix) getSearchContentHandlergets the handler which will recieve the method calls generated by the adapter.voidignorableWhitespace(char[] ch, int start, int end) voidprocessingInstruction(String target, String data) voidsetDocumentLocator(Locator locator) voidsetSearchContentHandler(SearchContentHandler scHandler) setSearchContentHandlersets the handler which will recieve the method calls generated by the adapter.voidskippedEntity(String name) voidvoidstartElement(String nsURI, String localName, String qName, Attributes attrs) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SeqSimilarityAdapter
public SeqSimilarityAdapter()
-
-
Method Details
-
getSearchContentHandler
getSearchContentHandlergets the handler which will recieve the method calls generated by the adapter.- Returns:
- a
SearchContentHandler.
-
setSearchContentHandler
setSearchContentHandlersets the handler which will recieve the method calls generated by the adapter.- Parameters:
scHandler- aSearchContentHandler.
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String nsURI, String localName, String qName, Attributes attrs) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-