org.webdocwf.util.smime.util
Class ByteArrayComparator

java.lang.Object
  |
  +--org.webdocwf.util.smime.util.ByteArrayComparator

public class ByteArrayComparator
extends java.lang.Object

ByteArrayComparator is used for finding first appearance of the inner byte array in the outher byte array.


Constructor Summary
ByteArrayComparator(byte[] toFind0, byte[] lookUpArray0)
          Construction with the given byte arrays (first is being searched in the second (lookup) byte array)
 
Method Summary
 int getMatchingIndex()
          Returns the position of the first matching byte in the outher byte array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayComparator

public ByteArrayComparator(byte[] toFind0,
                           byte[] lookUpArray0)
                    throws SMIMEException
Construction with the given byte arrays (first is being searched in the second (lookup) byte array)
Parameters:
toFind0 - byte array which is being searhced
lookUpArray0 - byte array to be searched
Throws:
SMIMEException - if toFind0 array is bigger than or equal to lookUpArray0 array!
Method Detail

getMatchingIndex

public int getMatchingIndex()
Returns the position of the first matching byte in the outher byte array
Returns:
Position of the first matching byte in the outher byte array


Copyright © 2002-2002 Together Teamlösungen. All Rights Reserved.