public final class ImageUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
compareHexValues(byte[] pattern,
byte[] data,
int searchAt,
boolean searchForward)
Compares two hexadecimal values.
|
static int |
getInt(String value)
Determines the digits from a string.
|
static int |
getIntFromByteArray(byte[] data,
int startAt,
int length,
boolean searchForward)
Determines a integer value from a hexadecimal byte array.
|
static boolean |
isPercent(String value)
Checks the string for percent character at the end of string.
|
public static int getInt(String value)
value
- String with digitspublic static boolean isPercent(String value)
value
- String with digitspublic static boolean compareHexValues(byte[] pattern, byte[] data, int searchAt, boolean searchForward)
pattern
- Targetdata
- DatasearchAt
- Position to start comparesearchForward
- Direction to compare byte arrayspublic static int getIntFromByteArray(byte[] data, int startAt, int length, boolean searchForward)
data
- ImagestartAt
- Start index to read fromlength
- Number of data elements to readsearchForward
- True if searching forward, False if not (??)Copyright © 2025 Apache Software Foundation. All rights reserved.