Class BytesValidator.PrePostFix

    • Constructor Detail

      • PrePostFix

        public PrePostFix​(boolean startsWith,
                          byte... pfix)
    • Method Detail

      • validate

        public boolean validate​(byte[] byteArrayToValidate)
        Description copied from interface: BytesValidator
        Validates given byte array
        Specified by:
        validate in interface BytesValidator
        Parameters:
        byteArrayToValidate - array, must not be altered, only read
        Returns:
        true if validation is successful, false otherwise