Class BinaryConstant
java.lang.Object
org.apache.commons.imaging.common.BinaryConstant
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
private final byte[] value
-
-
Constructor Details
-
BinaryConstant
public BinaryConstant(byte[] value)
-
-
Method Details
-
equals
public boolean equals(byte[] bytes) -
equals
-
get
public byte get(int i) -
hashCode
-
isStartOf
public boolean isStartOf(byte[] buffer) Tests whether the give buffer starts with this binary constant.- Parameters:
buffer- The buffer to test.- Returns:
- Whether the give buffer starts with this binary constant.
-
rawValue
byte[] rawValue() -
size
public int size() -
writeTo
- Throws:
IOException
-