| java.lang.Object javax.naming.RefAddr javax.naming.BinaryRefAddr
BinaryRefAddr | public class BinaryRefAddr extends RefAddr (Code) | | A BinaryRefAddr refers to an address which is represented by a
binary address.
|
Constructor Summary | |
public | BinaryRefAddr(String type, byte[] address) Constructs a BinaryRefAddr using the specified address
type and the full details of the supplied byte array. | public | BinaryRefAddr(String type, byte[] address, int index, int size) Constructs a BinaryRefAddr using the specified address
type and part of the supplied byte array. |
Method Summary | |
public boolean | equals(Object o) Returns true if this address is equal to the supplied object
o . | public Object | getContent() Gets the content of this address.
an array of bytes containing the address. | public int | hashCode() Returns the hashcode of this address. | public String | toString() Returns the string representation of this address. |
BinaryRefAddr | public BinaryRefAddr(String type, byte[] address)(Code) | | Constructs a BinaryRefAddr using the specified address
type and the full details of the supplied byte array.
Parameters: type - the address type which cannot be null Parameters: address - the address itself which cannot be null |
BinaryRefAddr | public BinaryRefAddr(String type, byte[] address, int index, int size)(Code) | | Constructs a BinaryRefAddr using the specified address
type and part of the supplied byte array. The number of bytes to be taken
is specified by size . Additionally these bytes are taken
from a starting point specified by index .
Parameters: type - the address type. It cannot be null. Parameters: address - the address itself. It cannot be null. Parameters: index - the starting point to copy bytes from. It must be greater thanor equal to zero and must be less than or equal to the size ofthe byte array. Parameters: size - the number of bytes to copy. It must be greater than or equalto zero and must be less than or equal to the size of the bytearray less the starting position. throws: ArrayIndexOutOfBoundsException - If size or index does not meetthe constraints. |
equals | public boolean equals(Object o)(Code) | | Returns true if this address is equal to the supplied object
o . They are considered equal if the address types are
equal and the data in the buffers is of the same length and contains the
same bytes.
Parameters: o - the object to compare with true if this address is equal to o , otherwisefalse |
getContent | public Object getContent()(Code) | | Gets the content of this address.
an array of bytes containing the address. It cannot be null. |
hashCode | public int hashCode()(Code) | | Returns the hashcode of this address. The result is the hashcode of the
address type added to each byte from the data buffer.
the hashcode of this address |
toString | public String toString()(Code) | | Returns the string representation of this address. The string includes
the address type and a maximum of 128 bytes address content expressed in
hexadecimal form.
the string representation of this address |
|
|