SandMark version 2.0


sandmark.watermark
Class StaticWatermarker

java.lang.Object
  |
  +--sandmark.Algorithm
        |
        +--sandmark.watermark.GeneralWatermarker
              |
              +--sandmark.watermark.StaticWatermarker
Direct Known Subclasses:
AddMethField, Bogus_Switch, BogusExpression, BogusInitializer, ConstantString, HatTrick, ObjectWatermark, Potkonjak, RenameFieldsMethods

public abstract class StaticWatermarker
extends GeneralWatermarker

A StaticWatermarker object encapsulates code for running a particular static watermark algorithm.


Field Summary
(package private) static ConfigProperties configProps
           
 
Constructor Summary
StaticWatermarker()
          Constructs a watermarker.
 
Method Summary
abstract  void embed(ClassFileCollection input, java.util.jar.JarOutputStream output, java.util.Properties props)
          Embed a watermark value into the program.
static java.lang.String getAboutHTML()
          Specifies the description given in the About page for Watermarking.
static java.lang.String getHelpURL()
          Specifies the URL of the Help page for Watermarking.
static ConfigProperties getProperties()
          Get the GENERAL properties of watermark
abstract  java.util.Iterator recognize(java.util.Properties props)
           
static void setProperties(ConfigProperties props)
          Set the GENERAL properties of watermark
 
Methods inherited from class sandmark.Algorithm
getAlgHTML, getAlgURL, getAuthor, getAuthorEmail, getConfigProperties, getDescription, getLongName, getMutations, getPostprohibited, getPostrequisites, getPostsuggestions, getPreprohibited, getPrerequisites, getPresuggestions, getReferences, getShortName, setConfigProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configProps

static ConfigProperties configProps
Constructor Detail

StaticWatermarker

public StaticWatermarker()
Constructs a watermarker.

Method Detail

embed

public abstract void embed(ClassFileCollection input,
                           java.util.jar.JarOutputStream output,
                           java.util.Properties props)
                    throws WatermarkingException,
                           java.io.IOException
Embed a watermark value into the program. The props argument holds at least the following properties:

WatermarkingException
java.io.IOException

recognize

public abstract java.util.Iterator recognize(java.util.Properties props)
                                      throws WatermarkingException,
                                             java.io.IOException
WatermarkingException
java.io.IOException

getProperties

public static ConfigProperties getProperties()
Description copied from class: GeneralWatermarker
Get the GENERAL properties of watermark


setProperties

public static void setProperties(ConfigProperties props)
Description copied from class: GeneralWatermarker
Set the GENERAL properties of watermark


getAboutHTML

public static java.lang.String getAboutHTML()
Description copied from class: GeneralWatermarker
Specifies the description given in the About page for Watermarking.

Returns:
an HTML formatted description of the algorithm.

getHelpURL

public static java.lang.String getHelpURL()
Description copied from class: GeneralWatermarker
Specifies the URL of the Help page for Watermarking.

Returns:
the Help page URL

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002