Class BinaryConstant
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryConstant
-
public class BinaryConstant extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]value
-
Constructor Summary
Constructors Constructor Description BinaryConstant(byte[] value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(byte[] bytes)booleanequals(java.lang.Object obj)byteget(int i)inthashCode()booleanisStartOf(byte[] buffer)Tests whether the give buffer starts with this binary constant.(package private) byte[]rawValue()intsize()voidwriteTo(java.io.OutputStream os)
-
-
-
Method Detail
-
equals
public boolean equals(byte[] bytes)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
get
public byte get(int i)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
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
public void writeTo(java.io.OutputStream os) throws java.io.IOException- Throws:
java.io.IOException
-
-