javax.naming
public class BinaryRefAddr extends RefAddr
Since: 1.3
See Also: Reference
Constructor Summary | |
---|---|
BinaryRefAddr(String addrType, byte[] buf)
Contructs a new BinaryRefAddr with the given type and content.
| |
BinaryRefAddr(String addrType, byte[] buf, int off, int length)
Contructs a new BinaryRefAddr with the given type and the content
taken from the given byte array.
|
Method Summary | |
---|---|
boolean | equals(Object o)
Checks if the object is a BinaryRefAddr with the same type and with the
same bytes in the content.
|
Object | getContent()
Returns the byte array contents as given to the constructor.
|
int | hashCode()
Returns the hashCode which is the hasCode of the String returned by
getType() plus the hashCode of the byte array returned by
getContent . |
String | toString()
Returns a String representation of the RefAddr. |
Returns: true if the given object is an instance of BinaryRefAddr, the addrType is the same as this addrType and the bytes of the content are the same.
getType()
plus the hashCode of the byte array returned by
getContent
. The hashCode of the byte array is calculated
by taking the xor of all the bytes in the array, or zero when there are
no bytes in the array.