Wyszukaj ciąg w tablicy bajtowej

byte[] array;
...
String text = new String(array);
String specific = "something";
if (text.indexOf(specific) >= 0) System.out.println("Found " + specific);
else System.out.println("Not found " + specific);
Phuong Anh Dang