public class BinaryContentCondition extends java.lang.Object implements AcceptCondition
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
match |
protected int |
offset |
Constructor and Description |
---|
BinaryContentCondition(int offset,
java.lang.String match)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(byte[] data)
Check accept.
|
boolean |
accept(DocumentProcessingContext ctx,
ProcessableDocument pdoc) |
java.lang.String |
toString() |
public BinaryContentCondition(int offset, java.lang.String match)
offset
- Offset in binary data, in byte. negative values are considered
from the end of file (-1 is the last byte)match
- Binary string to match.public boolean accept(DocumentProcessingContext ctx, ProcessableDocument pdoc)
accept
in interface AcceptCondition
protected boolean accept(byte[] data)
data
- Data to be validated, or null to validate the string match.public java.lang.String toString()
toString
in interface AcceptCondition
toString
in class java.lang.Object
Copyright © 2013 Dassault Systèmes, All Rights Reserved.