SandMark version 2.1


sandmark.watermark.objectwm
Class objectHelper

java.lang.Object
  |
  +--sandmark.watermark.objectwm.objectHelper

public class objectHelper
extends java.lang.Object

This class contains the support methods required by the "Insertion" method


Constructor Summary
objectHelper()
           
 
Method Summary
 boolean codeMatch(java.lang.String[] str1, java.lang.String[] str2, int numInstr)
          Compares two instruction opcode in string format
static void display_VectorInfo(java.util.Vector vec, java.lang.String mesg)
          Displays watermark vector information
 java.lang.String getOpcode(java.lang.String instrCode)
          Extracts the opcode from the instruction code
 int getRandomValue(int low, int high)
          returns a random value within specified boundary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

objectHelper

public objectHelper()
Method Detail

getRandomValue

public int getRandomValue(int low,
                          int high)
returns a random value within specified boundary


codeMatch

public boolean codeMatch(java.lang.String[] str1,
                         java.lang.String[] str2,
                         int numInstr)
Compares two instruction opcode in string format


display_VectorInfo

public static void display_VectorInfo(java.util.Vector vec,
                                      java.lang.String mesg)
Displays watermark vector information


getOpcode

public java.lang.String getOpcode(java.lang.String instrCode)
Extracts the opcode from the instruction code


SandMark version 2.1

Wed Jul 3 17:27:43 MST 2002