Class Blast2HTMLHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.biojava.bio.program.blast2html.Blast2HTMLHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Takes a SAX event stream and a HTMLRenderer to produce
a HTML Blast like program report.
Primary author -
Colin Hardman (CAT)
Other authors -
Tim Dilks (CAT)
Simon Brocklehurst (CAT)
Stuart Johnston (CAT)
Lawerence Bower (CAT)
Derek Crockford (CAT)
Neil Benn (CAT)
Copyright 2001 Cambridge Antibody Technology Group plc.
This code released to the biojava project, May 2001
under the LGPL license.
- Version:
- 1.0
- Author:
- Cambridge Antibody Technology Group plc, Greg Cox
-
Constructor Summary
ConstructorsConstructorDescriptionBlast2HTMLHandler
(HTMLRenderer poRenderer) A content handler for rendering blast like outputs into HTML. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] charBuffer, int start, int length) Describecharacters
method here.void
endElement
(String poNameSpace, String poElementName, String poQName) Called when the end of an element is reached.void
startElement
(String poNameSpace, String poElementName, String poQName, Attributes poAtts) This is called when an element is entered.Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
Blast2HTMLHandler
A content handler for rendering blast like outputs into HTML.- Parameters:
poRenderer
-HTMLRenderer
- a configured HTMLRenderer.
-
-
Method Details
-
startElement
public void startElement(String poNameSpace, String poElementName, String poQName, Attributes poAtts) throws SAXException This is called when an element is entered. That is, the parser has met the first tag of the tag pair.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Parameters:
poNameSpace
-String
- the name space.poElementName
-String
- the local name of the tag.poQName
-String
- the fully qualified name with prefixpoAtts
- anAttributes
- the tag attributes.- Throws:
SAXException
- if an error occurs
-
endElement
Called when the end of an element is reached.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Parameters:
poNameSpace
- aString
- the name space.poElementName
- aString
- the local element name.poQName
- aString
value - the qualified element name.
-
characters
Describecharacters
method here.- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Parameters:
charBuffer
- - character array containing data.start
- - the start position of relavent chars in passes arraylength
- - the stop position of relavent chars in passes array
-