public class ByteUtils
extends java.lang.Object
Constructor and Description |
---|
ByteUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
determineNumberOfBytesUsedForFstClassSize(byte[] source,
int matchIndex) |
static int |
indexOf(byte[] array,
byte[] target,
int offset) |
static boolean |
isByteArrayEmpty(byte[] bytes) |
static int |
readFstClassSize(byte[] source,
int index) |
static byte[] |
replaceAllBytes(byte[] source,
byte[] target,
byte[] replacement) |
static byte[] |
replaceClassPathBytes(byte[] source,
java.lang.String oldClasspath,
java.lang.String newClasspath) |
static void |
writeFstClassSize(java.io.ByteArrayOutputStream buffer,
int size) |
public static byte[] replaceAllBytes(byte[] source, byte[] target, byte[] replacement)
public static byte[] replaceClassPathBytes(byte[] source, java.lang.String oldClasspath, java.lang.String newClasspath)
public static int indexOf(byte[] array, byte[] target, int offset)
public static boolean isByteArrayEmpty(byte[] bytes)
public static int determineNumberOfBytesUsedForFstClassSize(byte[] source, int matchIndex)
public static int readFstClassSize(byte[] source, int index)
public static void writeFstClassSize(java.io.ByteArrayOutputStream buffer, int size)