All Packages Class Hierarchy This Package Previous Next Index
Class java.naming.BinaryRefAddr
java.lang.Object
|
+----java.naming.RefAddr
|
+----java.naming.BinaryRefAddr
- public class BinaryRefAddr
- extends RefAddr
The BinaryRefAddr class represents a communications end-point.
It consists of a type that describes the communication mechanism
and an opaque buffer containing the address description
specific to that communication mechanism.
- See Also:
- RefAddr, StringRefAddr
-
buf
-
-
BinaryRefAddr(String, byte[])
- Constructs a new instance of RefAddr using its address type and a byte
array for contents.
-
BinaryRefAddr(String, byte[], int, int)
- Constructs a new instance of RefAddr using its address type and a byte
array for contents.
-
equals(Object)
- Determines whether obj is equal to this address.
-
getAddressBytes()
- Retrieves the contents of the address.
-
getAddressContents()
- Retrieves the contents of this address.
-
hashCode()
- Computes the hash code of this address using its address type and contents.
-
size()
- Retrieves the number of bytes in the address contents.
-
toString()
- Generates the string representation of this address.
buf
protected byte buf[]
BinaryRefAddr
public BinaryRefAddr(String addrType,
byte src[])
- Constructs a new instance of RefAddr using its address type and a byte
array for contents.
- Parameters:
- addrType - A string describing the type of the address.
- src - The contents of the address as a byte array.
BinaryRefAddr
public BinaryRefAddr(String addrType,
byte src[],
int offset,
int count)
- Constructs a new instance of RefAddr using its address type and a byte
array for contents.
- Parameters:
- addrType - A string describing the type of the address.
- src - The contents of the address as a byte array.
- offset - The starting index in src to get the bytes.
- count - The number of bytes to extract from src.
size
public int size()
- Retrieves the number of bytes in the address contents.
- Returns:
- The number of bytes in the address contents.
getAddressBytes
public byte[] getAddressBytes()
- Retrieves the contents of the address.
Changes to this array will affect this BinaryRefAddr's contents.
- Returns:
- The buffer containing this address's contents.
Changes to buffer will affect this BinaryRefAddr's contents.
getAddressContents
public Object getAddressContents()
- Retrieves the contents of this address.
- Returns:
- The address contents.
- Overrides:
- getAddressContents in class RefAddr
equals
public boolean equals(Object obj)
- Determines whether obj is equal to this address. It is equal if
it contains the same address type and contents.
- Parameters:
- obj - The object to check.
- Returns:
- true if the object is equal; false otherwise.
- Overrides:
- equals in class RefAddr
hashCode
public int hashCode()
- Computes the hash code of this address using its address type and contents.
- Returns:
- The hash code of this address as an int.
- Overrides:
- hashCode in class RefAddr
toString
public String toString()
- Generates the string representation of this address.
The string consists of the address's type and contents with labels.
- Returns:
- The string representation of this address.
- Overrides:
- toString in class RefAddr
All Packages Class Hierarchy This Package Previous Next Index