| java.lang.Object | |
| ↳ | com.facebook.imageformat.ImageFormatCheckerUtils |
ImageFormatChecker utility methods
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static byte[] |
asciiBytes(String value)
Helper method that transforms provided string into it's byte representation using ASCII
encoding.
| ||||||||||
| static boolean |
hasPatternAt(byte[] byteArray, byte[] pattern, int offset)
Checks if byteArray interpreted as sequence of bytes starts with pattern starting at position
equal to offset.
| ||||||||||
| static int |
indexOfPattern(byte[] byteArray, int byteArrayLen, byte[] pattern, int patternLen)
Checks if byteArray interpreted as sequence of bytes contains the pattern.
| ||||||||||
| static boolean |
startsWithPattern(byte[] byteArray, byte[] pattern)
Checks if byteArray interpreted as sequence of bytes starts with pattern starting at position
equal to offset.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Helper method that transforms provided string into it's byte representation using ASCII encoding.
| value | the string to use |
|---|
Checks if byteArray interpreted as sequence of bytes starts with pattern starting at position equal to offset.
| byteArray | the byte array to be checked |
|---|---|
| pattern | the pattern to check |
Checks if byteArray interpreted as sequence of bytes contains the pattern.
| byteArray | the byte array to be checked |
|---|---|
| pattern | the pattern to check |
Checks if byteArray interpreted as sequence of bytes starts with pattern starting at position equal to offset.
| byteArray | the byte array to be checked |
|---|---|
| pattern | the pattern to check |