public class MethodData
extends org.apache.directory.api.asn1.AbstractAsn1Object
METHOD-DATA ::= SEQUENCE OF
| Constructor and Description |
|---|
MethodData()
Creates a new instance of MethodData.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPaData(PaData paData)
Adds an
PaData to the list |
int |
computeLength()
Compute the METHOD-DATA length
|
boolean |
contains(PaData paData)
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the METHOD-DATA message to a PDU.
|
boolean |
equals(MethodData that)
Returns true if two
MethodData are equal. |
PaData[] |
getPaDatas()
Returns the contained
PaDatas as an array. |
int |
hashCode() |
String |
toString() |
public void addPaData(PaData paData)
PaData to the listpaData - The PaData to addpublic boolean contains(PaData paData)
public boolean equals(MethodData that)
MethodData are equal.that - The MethodData we want to compare with the current oneMethodData are equal.public PaData[] getPaDatas()
PaDatas as an array.PaDatas.public int computeLength()
METHOD-DATA :
0x30 L1 METHOD-DATA sequence of PA-DATA
|
+--> 0x30 L2[1] PA-DATA[1]
|
+--> 0x30 L2[2] PA-DATA[2]
|
...
|
+--> 0x30 L2[n] PA-DATA[n]
where L1 = sum( L2[1], l2[2], ..., L2[n] )
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
METHOD-DATA : 0x30 LL 0x30 LL PA-DATA[1] 0x30 LL PA-DATA[1] ... 0x30 LL PA-DATA[1]
encode in interface org.apache.directory.api.asn1.Asn1Objectencode in class org.apache.directory.api.asn1.AbstractAsn1Objectbuffer - The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.api.asn1.EncoderExceptionpublic String toString()
toString in class ObjectObject.toString()Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.