The list of methods to do Array Start With are organized into topic(s).
boolean
arrayStartsWith(final byte[] array, final byte[] str) Check that a byte array starts with some byte values.
boolean result = false;
if (array.length >= str.length) {
result = true;
int index = str.length;
while (--index >= 0) {
if (array[index] != str[index]) {
result = false;
break;
...
boolean
startWith(byte[] startWith, byte[] bytes) start With
if (bytes == null || startWith == null || bytes.length < startWith.length) {
return false;
for (int i = 0; i < startWith.length; i++) {
if (bytes[i] != startWith[i]) {
return false;
return true;
int
startWith(char[] value, char c) start With
for (int i = 0; i < value.length; i++) {
if (Character.isSpaceChar(value[i]) || Character.isWhitespace(value[i]))
continue;
else if (c == value[i])
return i;
else
return -1;
return -1;
boolean
startWith(final byte[] aBuffer, final byte[] aPrefix) start With
if (aBuffer == null || aPrefix == null || aBuffer.length < aPrefix.length) {
return false;
int wMax = aPrefix.length;
int wI = 0;
while (wI < wMax) {
if (aBuffer[wI] != aPrefix[wI]) {
return false;
...