edu.wisc.cs.stego.lib
Class RadixKScanner

java.lang.Object
  |
  +--edu.wisc.cs.stego.Scanner
        |
        +--edu.wisc.cs.stego.lib.RadixKScanner

public class RadixKScanner
extends Scanner

This object searches for radix-k graphs which may be potential watermarks. This is a module loaded by the Seek program. Optionally, this module takes arguments of the form:

radix=n

For the radix argument, n is a positive integer between 2 and 36. This specifies the radix to use when decoding any potential watermark graphs which are located. If a well-formed argument is not found, the default radix from the RadixKEncoder class is used.

All arguments to this module are specified on the command line of the Seek program.

See Also:
Seek, Scanner, RadixKEncoder.DEFAULT_RADIX

Constructor Summary
protected RadixKScanner(java.lang.String[] argv)
          Constructs a new RadixKScanner object.
 
Method Summary
static Scanner buildScanner(java.lang.String[] args)
          This is a factory method which builds new RadixKScanner objects.
 java.lang.String[] scanHeap(HeapProfile heap)
          This method performs the work of locating and decoding potential watermarks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadixKScanner

protected RadixKScanner(java.lang.String[] argv)
Constructs a new RadixKScanner object. This constructor searches the parameter array for arguments of the form:

radix=n

For the radix argument, n is a positive integer between 2 and 36. This specifies the radix to use when decoding any potential watermark graphs which are located. If a well-formed argument is not found, the default radix from the RadixKEncoder class is used.

Parameters:
params - parameters for the new RadixKScanner object.
See Also:
RadixKEncoder.DEFAULT_RADIX
Method Detail

buildScanner

public static Scanner buildScanner(java.lang.String[] args)
This is a factory method which builds new RadixKScanner objects.
Parameters:
params - parameters for the new RadixKScanner object.
Returns:
a newly constructed and initialized RadixKScanner object.
See Also:
Scanner.buildScanner(java.lang.String[])

scanHeap

public java.lang.String[] scanHeap(HeapProfile heap)
This method performs the work of locating and decoding potential watermarks.
Overrides:
scanHeap in class Scanner
Parameters:
hp - a heap in which to search for possible watermarks.
Returns:
an array of strings which are possible watermarks.
See Also:
Scanner.scanHeap(edu.wisc.cs.stego.heap.HeapProfile)