- java.lang.Object
-
- at.favre.lib.bytes.BytesValidator.PrePostFix
-
- All Implemented Interfaces:
BytesValidator
- Enclosing interface:
- BytesValidator
public static final class BytesValidator.PrePostFix extends Object implements BytesValidator
Checks if arrays end or start with given array
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface at.favre.lib.bytes.BytesValidator
BytesValidator.IdenticalContent, BytesValidator.Length, BytesValidator.Logical, BytesValidator.PrePostFix
-
-
Constructor Summary
Constructors Constructor Description PrePostFix(boolean startsWith, byte... pfix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validate(byte[] byteArrayToValidate)
Validates given byte array
-
-
-
Method Detail
-
validate
public boolean validate(byte[] byteArrayToValidate)
Description copied from interface:BytesValidator
Validates given byte array- Specified by:
validate
in interfaceBytesValidator
- Parameters:
byteArrayToValidate
- array, must not be altered, only read- Returns:
- true if validation is successful, false otherwise
-
-