public class ConfEBinary extends ConfEObject implements Serializable, Cloneable
Constructor and Description |
---|
ConfEBinary(byte[] bin)
Create a binary from a byte array
|
ConfEBinary(ConfInputStream buf)
Create a binary from a stream containing a binary encoded in E external
format.
|
ConfEBinary(Object o)
Create a binary from an arbitrary Java Object.
|
ConfEBinary(String s) |
Modifier and Type | Method and Description |
---|---|
byte[] |
binaryValue()
Get the byte array from a binary.
|
Object |
clone() |
void |
encode(ConfOutputStream buf)
Convert this binary to the equivalent E external representation.
|
boolean |
equals(Object o)
Determine if two binaries are equal.
|
Object |
getObject()
Get the java Object from the binary.
|
int |
hashCode() |
int |
size()
Get the size of the binary.
|
String |
stringValue()
Get the string representation of binary
|
String |
toString()
Get the string representation of this binary object.
|
decode
public ConfEBinary(byte[] bin)
bin
- the array of bytes from which to create the binary.public ConfEBinary(String s)
public ConfEBinary(ConfInputStream buf) throws ConfEDecodeException
buf
- the stream containing the encoded binary.ConfEDecodeException
- if the buffer does not contain a valid external
representation of an E binary.public ConfEBinary(Object o)
o
- the object to serialize and create this binary from.public byte[] binaryValue()
public String stringValue()
public int size()
public Object getObject()
public String toString()
toString
in class ConfEObject
public void encode(ConfOutputStream buf)
encode
in class ConfEObject
buf
- an output stream to which the encoded binary should be
written.public boolean equals(Object o)
equals
in class ConfEObject
o
- the binary to compare to.public Object clone()
clone
in class ConfEObject