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

Variable Index

 o buf

Constructor Index

 o BinaryRefAddr(String, byte[])
Constructs a new instance of RefAddr using its address type and a byte array for contents.
 o BinaryRefAddr(String, byte[], int, int)
Constructs a new instance of RefAddr using its address type and a byte array for contents.

Method Index

 o equals(Object)
Determines whether obj is equal to this address.
 o getAddressBytes()
Retrieves the contents of the address.
 o getAddressContents()
Retrieves the contents of this address.
 o hashCode()
Computes the hash code of this address using its address type and contents.
 o size()
Retrieves the number of bytes in the address contents.
 o toString()
Generates the string representation of this address.

Variables

 o buf
 protected byte buf[]

Constructors

 o 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.
 o 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.

Methods

 o size
 public int size()
Retrieves the number of bytes in the address contents.

Returns:
The number of bytes in the address contents.
 o 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.
 o getAddressContents
 public Object getAddressContents()
Retrieves the contents of this address.

Returns:
The address contents.
Overrides:
getAddressContents in class RefAddr
 o 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
 o 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
 o 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