public class HostAddresses
extends org.apache.directory.shared.asn1.AbstractAsn1Object
| Constructor and Description |
|---|
HostAddresses()
Creates a new instance of HostAddresses.
|
HostAddresses(HostAddress[] addresses)
Creates a new instance of HostAddresses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHostAddress(HostAddress hostAddress) |
int |
computeLength()
Compute the hostAddresses length
HostAddresses :
0x30 L1 hostAddresses sequence of HostAddresses
|
+--> 0x30 L2[1] Hostaddress[1]
|
+--> 0x30 L2[2] Hostaddress[2]
|
...
|
boolean |
contains(HostAddress address)
Returns true if this
HostAddresses contains a specified HostAddress. |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the HostAddress message to a PDU.
|
boolean |
equals(HostAddresses that)
Returns true if two
HostAddresses are equal. |
HostAddress[] |
getAddresses()
Returns the contained
HostAddresss as an array. |
String |
toString() |
public HostAddresses()
public HostAddresses(HostAddress[] addresses)
addresses - The associated addressespublic void addHostAddress(HostAddress hostAddress)
public boolean contains(HostAddress address)
HostAddresses contains a specified HostAddress.address - HostAddresses contains a specified HostAddress.public boolean equals(HostAddresses that)
HostAddresses are equal.that - HostAddresses are equal.public HostAddress[] getAddresses()
HostAddresss as an array.HostAddresss.public int computeLength()
computeLength in interface org.apache.directory.shared.asn1.Asn1ObjectcomputeLength in class org.apache.directory.shared.asn1.AbstractAsn1Objectpublic ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.shared.asn1.codec.EncoderException
encode in interface org.apache.directory.shared.asn1.Asn1Objectencode in class org.apache.directory.shared.asn1.AbstractAsn1Objectbuffer - The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.shared.asn1.codec.EncoderExceptionpublic String toString()
toString in class ObjectObject.toString()Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.