|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MagicMatcher
Classes which are able to match content according to operations and output description.
Method Summary | |
---|---|
Object |
convertTestString(String typeStr,
String testStr,
int offset)
Converts the test-string from the magic line to be an object to be passed into isMatch(Object, Long, boolean, Object, int, byte[]) . |
Object |
extractValueFromBytes(int offset,
byte[] bytes)
Extract the value from the bytes. |
Object |
isMatch(Object testValue,
Long andValue,
boolean unsignedType,
Object extractedValue,
int offset,
byte[] bytes)
Matches if the bytes match at a certain offset. |
void |
renderValue(StringBuilder sb,
Object extractedValue,
Formatter formatter)
Returns the string version of the extracted value. |
Method Detail |
---|
Object convertTestString(String typeStr, String testStr, int offset)
isMatch(Object, Long, boolean, Object, int, byte[])
.
Object extractValueFromBytes(int offset, byte[] bytes)
isMatch(Object, Long, boolean, Object, int, byte[])
or null if not
enough bytes.Object isMatch(Object testValue, Long andValue, boolean unsignedType, Object extractedValue, int offset, byte[] bytes)
void renderValue(StringBuilder sb, Object extractedValue, Formatter formatter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |