public class BinaryContentCondition extends AcceptCondition implements com.exalead.util.Checkable, java.io.Serializable
AcceptCondition.Transformer<T>
Constructor and Description |
---|
BinaryContentCondition() |
BinaryContentCondition(BinaryContentCondition o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(AcceptCondition.Transformer<T> transformer,
T[] t) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this BinaryContentCondition.
|
static BinaryContentCondition |
fromString(java.lang.String s)
String representation of this BinaryContentCondition.
|
java.lang.String |
getMatch()
Binary string to be compared.
The string may contain any ASCII (7-bit) character, or the following '\' escape sequences: \xNN An hexadecimal-encoded character (N part of '0'..'9' or 'A'..'F') \NNN An octal-encoded character (N part of '0'..'9') \n Character 10 \r Character 13 \\ Character '\' \" Character '"' \? Any character |
int |
getOffset()
Offset in bytes for the binary data to be compared, in bytes (0 for the beginning of the file).
Negative values are taken as offset from the end of the file (-1 for the last byte). |
BinaryContentCondition |
makeCopy()
Creates and returns a deep copy of this BinaryContentCondition.
|
static BinaryContentCondition |
readFrom(java.io.InputStream is)
Read this BinaryContentCondition from an XML fragment.
|
void |
setMatch(java.lang.String match)
Binary string to be compared.
The string may contain any ASCII (7-bit) character, or the following '\' escape sequences: \xNN An hexadecimal-encoded character (N part of '0'..'9' or 'A'..'F') \NNN An octal-encoded character (N part of '0'..'9') \n Character 10 \r Character 13 \\ Character '\' \" Character '"' \? Any character |
void |
setOffset(int offset)
Offset in bytes for the binary data to be compared, in bytes (0 for the beginning of the file).
Negative values are taken as offset from the end of the file (-1 for the last byte). |
java.lang.String |
toString()
String representation of this BinaryContentCondition.
|
BinaryContentCondition |
withMatch(java.lang.String match) |
BinaryContentCondition |
withOffset(int offset) |
BinaryContentCondition |
withOffset(java.lang.Integer offset) |
void |
writeTo(java.io.OutputStream os)
Write this BinaryContentCondition as an XML fragment
|
public BinaryContentCondition()
public BinaryContentCondition(BinaryContentCondition o)
public void setOffset(int offset)
public int getOffset()
public BinaryContentCondition withOffset(int offset)
public BinaryContentCondition withOffset(java.lang.Integer offset)
public void setMatch(java.lang.String match)
public java.lang.String getMatch()
public BinaryContentCondition withMatch(java.lang.String match)
public BinaryContentCondition makeCopy()
makeCopy
in class AcceptCondition
public static BinaryContentCondition readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class AcceptCondition
javax.xml.bind.JAXBException
java.io.IOException
public static BinaryContentCondition fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class AcceptCondition
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class AcceptCondition
com.exalead.util.TypedException
public <T> T accept(AcceptCondition.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class AcceptCondition
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.