public interface CodecControl
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the Control length
|
ByteBuffer |
encode(ByteBuffer buffer)
Generate the PDU which contains the Control.
|
ControlDecoder |
getDecoder()
Get the associated decoder
|
ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Control : 0x30 LL 0x04 LL type [0x01 0x01 criticality] [0x04 LL value]
buffer - The encoded PDUEncoderException - If anything goes wrong.int computeLength()
Control :
0x30 L1
|
+--> 0x04 L2 controlType
[+--> 0x01 0x01 criticality]
[+--> 0x04 L3 controlValue]
Control length = Length(0x30) + length(L1)
+ Length(0x04) + Length(L2) + L2
[+ Length(0x01) + 1 + 1]
[+ Length(0x04) + Length(L3) + L3]
ControlDecoder getDecoder()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.