|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scanner
Interface for searching byte arrays.
Method Summary | |
---|---|
int |
binarySearch(byte[] a,
byte v)
|
int |
binarySearch(byte[] a,
int from,
int to,
byte v)
Search a byte value from byte-array. |
int[] |
findAll(byte[] a,
byte v)
Find the indices of all occurrences of the given value in the array. |
int[] |
findAll(byte[] a,
byte[] v)
Find the index of the any occurrence of the given sequence in the array. |
int[] |
findAll(byte[] a,
byte[] v,
int from,
int to)
Find the index of the any occurrence of the given sequence in an array segment. |
int[] |
findAll(byte[] a,
byte v,
int from,
int to)
Find the indices of all occurrences of the given value in an array segment. |
int |
findAny(byte[] a,
byte v)
Find the index of the any occurrence of the given value in the array. |
int |
findAny(byte[] a,
byte[] v)
Find the index of the any occurrence of the given sequence in the array. |
int |
findAny(byte[] a,
byte[] v,
int from,
int to)
Find the index of the any occurrence of the given sequence in an array segment. |
int |
findAny(byte[] a,
byte v,
int from,
int to)
Find the index of the any occurrence of the given value in an array segment. |
int |
findFirst(byte[] a,
byte v)
Find the index of the first occurrence of the given value in the array. |
int |
findFirst(byte[] a,
byte[] v)
Find the index of the first occurrence of the given sequence in the array. |
int |
findLast(byte[] a,
byte v)
Find the index of the last occurrence of the given value in the array. |
int |
findLast(byte[] a,
byte[] v)
Find the index of the last occurrence of the given sequence in the array. |
int |
findNext(byte[] a,
byte[] v,
int index)
Find the next index of the given sequence in the array. |
int |
findNext(byte[] a,
byte v,
int index)
Find the next index of the given value in the array. |
int |
findPrevious(byte[] a,
byte[] v,
int index)
Find the previous index of the given value in the array. |
int |
findPrevious(byte[] a,
byte v,
int index)
Find the previous index of the given value in the array. |
int |
replaceAll(byte[] a,
byte[] v,
byte[] r)
Replace all occurrences of the search sequence with the replacement sequence. |
int |
replaceAll(byte[] a,
byte[] v,
byte[] r,
int from,
int to)
Replace all occurrences of the search sequence with the replacement sequence. |
int |
replaceAll(byte[] a,
byte v,
byte r)
Replace all occurrences of the search value with the replacement value. |
int |
replaceAll(byte[] a,
byte v,
byte r,
int from,
int to)
Replace all occurrences of the search value with the replacement value. |
Method Detail |
---|
int findFirst(byte[] a, byte v)
a
- The array to search.v
- The value to search for.
int findLast(byte[] a, byte v)
a
- The array to search.v
- The value to search for.
int findNext(byte[] a, byte v, int index)
a
- The array to search.v
- The value to search for.index
- The starting index for the search.
int findPrevious(byte[] a, byte v, int index)
a
- The array to search.v
- The value to search for.index
- The starting index for the search (exclusive, searching
backward).
int findAny(byte[] a, byte v)
a
- The array to search.v
- The value to search for.
int findAny(byte[] a, byte v, int from, int to)
a
- The array to search.v
- The value to search for.from
- starting index for search (inclusive)to
- ending index for search (exclusive)
int[] findAll(byte[] a, byte v)
a
- The array to search.v
- The value to search for.
int replaceAll(byte[] a, byte v, byte r)
a
- The array to search.v
- The value to search for.r
- The replacement value.
int[] findAll(byte[] a, byte v, int from, int to)
a
- The array to search.v
- The value to search for.from
- starting index for search (inclusive)to
- ending index for search (exclusive)
int replaceAll(byte[] a, byte v, byte r, int from, int to)
a
- The array to search.v
- The sequence to search for.r
- The replacement sequence.from
- starting index for search (inclusive)to
- ending index for search (exclusive)
int findFirst(byte[] a, byte[] v)
a
- The array to search.v
- The sequence to search for.
int findLast(byte[] a, byte[] v)
a
- The array to search.v
- The sequence to search for.
int findNext(byte[] a, byte[] v, int index)
a
- The array to search.v
- The sequence to search for.index
- The starting index for the search (inclusive).
int findPrevious(byte[] a, byte[] v, int index)
a
- The array to search.v
- The value to search for.index
- The starting index for the search (exclusive, searching
backward).
int findAny(byte[] a, byte[] v)
a
- The array to search.v
- The sequence to search for.
int findAny(byte[] a, byte[] v, int from, int to)
a
- The array to search.v
- The sequence to search for.from
- starting index for search (inclusive)to
- ending index for search (exclusive)
int[] findAll(byte[] a, byte[] v)
a
- The array to search.v
- The sequence to search for.
int replaceAll(byte[] a, byte[] v, byte[] r)
a
- The array to search.v
- The sequence to search for.r
- The replacement sequence.
int[] findAll(byte[] a, byte[] v, int from, int to)
a
- The array to search.v
- The sequence to search for.from
- starting index for search (inclusive)to
- ending index for search (exclusive)
int replaceAll(byte[] a, byte[] v, byte[] r, int from, int to)
a
- The array to search.v
- The sequence to search for.r
- The replacement sequence.from
- starting index for search (inclusive)to
- ending index for search (exclusive)
int binarySearch(byte[] a, byte v)
a
- The array to search.v
- The value to search for
int binarySearch(byte[] a, int from, int to, byte v)
a
- The array to search.from
- starting index for search (inclusive)to
- ending index for search (exclusive)v
- The value to search for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |