public final class Utility extends Object
| Modifier and Type | Method and Description |
|---|---|
static int[] |
ComputeKMPNextArray(byte[] key)
Only for internal engineering use.
|
static int |
KMPFindFirst(byte[] key,
int[] next,
byte[] target)
Only for internal engineering use.
|
static long |
KMPFindFirst(byte[] key,
int[] next,
InputByteStream targetstm)
Only for internal engineering use.
|
static boolean |
nameInArray(ASName key,
ASName[] keys)
Only for internal engineering use.
|
public static boolean nameInArray(ASName key, ASName[] keys)
public static int[] ComputeKMPNextArray(byte[] key)
key - - array of bytes that may occur as a subset of targetpublic static int KMPFindFirst(byte[] key,
int[] next,
byte[] target)
key - - array of bytes that may occur as a subset of targetnext - - KMP failure arraytarget - - array of bytes to be searchedpublic static long KMPFindFirst(byte[] key,
int[] next,
InputByteStream targetstm)
throws IOException
key - - array of bytes that may occur as a subset of targetnext - - KMP failure arraytargetstm - - a ByteStream to be searchedIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved