SandMark version 3.0


sandmark.watermark.objectwm
Class SubstitutionUtil

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

public class SubstitutionUtil
extends java.lang.Object

This class implements all the code substitution embedding features


Field Summary
(package private)  de.fub.bytecode.generic.InstructionHandle[] targetsObj
           
 
Constructor Summary
SubstitutionUtil(ObjectUtil objUtil)
          Constructor
 
Method Summary
 de.fub.bytecode.generic.InstructionHandle getCodeSubstPoint(java.lang.String[] instrGrp, int numInstr, java.lang.String[] origCodeStr)
          This method retrieves the point where code is to be substituted, provided we found the codebook instruction group in the app. code, else null is returned;
 void substituteCode(de.fub.bytecode.generic.InstructionHandle insertih, java.lang.String[] subInstr, int numInstr)
          This method is the first procedure for vector increment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetsObj

de.fub.bytecode.generic.InstructionHandle[] targetsObj
Constructor Detail

SubstitutionUtil

public SubstitutionUtil(ObjectUtil objUtil)
Constructor

Method Detail

substituteCode

public void substituteCode(de.fub.bytecode.generic.InstructionHandle insertih,
                           java.lang.String[] subInstr,
                           int numInstr)
This method is the first procedure for vector increment. Pure code substitution is done in this ie. we find match of codegroup instruction and substitute it by equivalent set of instructions;


getCodeSubstPoint

public de.fub.bytecode.generic.InstructionHandle getCodeSubstPoint(java.lang.String[] instrGrp,
                                                                   int numInstr,
                                                                   java.lang.String[] origCodeStr)
This method retrieves the point where code is to be substituted, provided we found the codebook instruction group in the app. code, else null is returned;


SandMark version 3.0

Wed Jan 29 10:30:05 MST 2003