public class MethodData extends Object implements org.apache.directory.api.asn1.Asn1Object
METHOD-DATA ::= SEQUENCE OF <PA-DATA>
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
PaData s as an array. |
int |
hashCode() |
String |
toString() |
public MethodData()
public void addPaData(PaData paData)
PaData
to the listpaData
- The PaData to addpublic boolean equals(MethodData that)
MethodData
are equal.that
- The MethodData
we want to compare with the current oneMethodData
are equal.public PaData[] getPaDatas()
PaData
s as an array.PaData
s.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] )
computeLength
in interface org.apache.directory.api.asn1.Asn1Object
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.Asn1Object
buffer
- The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.api.asn1.EncoderException
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.