info.simongibbs.scoof
Class ShreddingTask

java.lang.Object
  extended byinfo.simongibbs.scoof.AbstractSearchTask
      extended byinfo.simongibbs.scoof.ShreddingTask
All Implemented Interfaces:
java.lang.Runnable, SearchTask

public class ShreddingTask
extends AbstractSearchTask

Produces Hits by cutting a file into overlapping sections of a fixed length. The length used is specified by configuring the CodeBase.

Version:
$Revision: 1.4 $
Author:
simon

Field Summary
static java.lang.String CLASS
           
 
Constructor Summary
ShreddingTask(Target t)
          Construct a new basic task.
 
Method Summary
 void run()
          Performs the search.
static java.util.Collection shred(java.lang.String code, int blockSize)
           
 
Methods inherited from class info.simongibbs.scoof.AbstractSearchTask
getTarget, setTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS

public static final java.lang.String CLASS
Constructor Detail

ShreddingTask

public ShreddingTask(Target t)
Construct a new basic task.

Parameters:
t - the Target of the search
Method Detail

run

public void run()
Description copied from class: AbstractSearchTask
Performs the search.

Specified by:
run in interface SearchTask
Specified by:
run in class AbstractSearchTask
See Also:
Runnable.run()

shred

public static java.util.Collection shred(java.lang.String code,
                                         int blockSize)