es.caib.ibkey.utils
Class KPM

java.lang.Object
  extended by es.caib.ibkey.utils.KPM

public class KPM
extends java.lang.Object


Constructor Summary
KPM()
           
 
Method Summary
static int indexOf(byte[] data, byte[] pattern)
          Search the data byte array for the first occurrence of the byte array pattern.
static int indexOf(byte[] data, byte[] pattern, int startOffset)
           
static int indexOfBackwards(byte[] data, byte[] pattern, int startOffset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KPM

public KPM()
Method Detail

indexOf

public static int indexOf(byte[] data,
                          byte[] pattern)
Search the data byte array for the first occurrence of the byte array pattern.


indexOf

public static int indexOf(byte[] data,
                          byte[] pattern,
                          int startOffset)

indexOfBackwards

public static int indexOfBackwards(byte[] data,
                                   byte[] pattern,
                                   int startOffset)


Copyright © 2012 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.