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 BinaryConstant
clone()
boolean
equals(byte[] bytes)
boolean
equals(byte[] bytes, int offset, int length)
boolean
equals(java.lang.Object obj)
byte
get(int i)
int
hashCode()
int
size()
byte[]
toByteArray()
void
writeTo(java.io.OutputStream os)
-
-
-
Method Detail
-
clone
public BinaryConstant clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(byte[] bytes)
-
equals
public boolean equals(byte[] bytes, int offset, int length)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
get
public byte get(int i)
-
size
public int size()
-
toByteArray
public byte[] toByteArray()
-
writeTo
public void writeTo(java.io.OutputStream os) throws java.io.IOException
- Throws:
java.io.IOException
-
-