package ssbind; import org.biojava.bio.search.*; /** * Prints out a count of the total number of sub hits in a report. * *

Example

*
 * java ProcessBlastReport blast.out ssbind.CountSubHits
 * 
* * @author Matthew Pocock * @author Rahul Karnik */ public class CountSubHits extends SearchContentAdapter { private int subHits; public void startSearch() { subHits = 0; } public void endSearch() { System.out.println("Number of sub hits: " + subHits); } public void startSubHit() { subHits++; } }