Package com.nt.udc.util
Class ByteArrayUtils
java.lang.Object
com.nt.udc.util.ByteArrayUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intindexOf(byte[] data, byte[] pattern) Returns first index from the start where pattern is found in the data array, -1 if not found
-
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 foundpattern- pattern to be found in data
-