edu.wisc.cs.stego
Class Encoder

java.lang.Object
  |
  +--edu.wisc.cs.stego.Encoder
Direct Known Subclasses:
EncoderLoadTest, PPCTEncoder, RadixKEncoder

public abstract class Encoder
extends java.lang.Object

The Encoder class should be extended by a class intended for use with a software watermarking package to implement a watermark encoding structure.


Constructor Summary
protected Encoder()
          This class is not instantiable but this must be accessable to subclasses.
 
Method Summary
static Encoder buildEncoder(java.lang.String[] params)
          This method is a factory for producing Encoder objects for use in a watermark embedding program.
abstract  WatermarkGraph encodeWMData(java.lang.String data)
          Encodes the watermark data according to the implementation of the specific subclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Encoder

protected Encoder()
This class is not instantiable but this must be accessable to subclasses.
Method Detail

buildEncoder

public static Encoder buildEncoder(java.lang.String[] params)
This method is a factory for producing Encoder objects for use in a watermark embedding program. This method must be overridden by classes which inherit from this one. Even though it is not required by the sematics of the Java language, it is required by our specification for valid Encoder classes.
Parameters:
params - parameters for the initialization of the new Encoder object.
Returns:
a newly constructed and initialized Encoder object.
Throws:
NoSuchMethodError - if this is not overridden by the subclass.

encodeWMData

public abstract WatermarkGraph encodeWMData(java.lang.String data)
Encodes the watermark data according to the implementation of the specific subclass.
Parameters:
data - the watermark data to be encoded.
Returns:
a representation of the watermark graph.
Throws:
InvalidWatermarkException - if data is invalid.