Class ByteArrayUtils

java.lang.Object
com.nt.udc.util.ByteArrayUtils

public class ByteArrayUtils extends Object
  • Constructor Details

    • ByteArrayUtils

      public ByteArrayUtils()
  • Method Details

    • indexOf

      public static int indexOf(byte[] data, byte[] pattern)
      Returns first index from the start where pattern is found in the data array, -1 if not found
      Parameters:
      data - byte array where pattern has to be found
      pattern - pattern to be found in data