Package org.biojava.bio.program.ssbind
Class SeqSimilarityAdapter
- java.lang.Object
-
- org.biojava.bio.program.ssbind.SeqSimilarityAdapter
-
- All Implemented Interfaces:
ContentHandler
public class SeqSimilarityAdapter extends Object implements ContentHandler
ASeqSimilarityAdapterconverts SAX events into method calls on aSearchContentHandlerimplementation. The SAX events should describe elements conforming to the BioJava BlastLikeDataSetCollection DTD. ABlastLikeSearchBuilderis supplied, implementing theSearchContentHandlerinterface, which will createSeqSimilaritySearchResults from the stream.- Since:
- 1.2
- Author:
- Keith James
-
-
Constructor Summary
Constructors Constructor Description SeqSimilarityAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int end)voidendDocument()voidendElement(String nsURI, String localName, String qName)voidendPrefixMapping(String prefix)SearchContentHandlergetSearchContentHandler()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)voidstartDocument()voidstartElement(String nsURI, String localName, String qName, Attributes attrs)voidstartPrefixMapping(String prefix, String uri)
-
-
-
Constructor Detail
-
SeqSimilarityAdapter
public SeqSimilarityAdapter()
-
-
Method Detail
-
getSearchContentHandler
public SearchContentHandler getSearchContentHandler()
getSearchContentHandlergets the handler which will recieve the method calls generated by the adapter.- Returns:
- a
SearchContentHandler.
-
setSearchContentHandler
public void setSearchContentHandler(SearchContentHandler scHandler)
setSearchContentHandlersets the handler which will recieve the method calls generated by the adapter.- Parameters:
scHandler- aSearchContentHandler.
-
startDocument
public void startDocument() throws SAXException
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int end) throws SAXException
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int end) throws SAXException
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
public void skippedEntity(String name) throws SAXException
- 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
public void endElement(String nsURI, String localName, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
-