public class ControlImpl extends AbstractControl
decoder, value, valueLengthparent| Constructor and Description |
|---|
ControlImpl(String oid)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the object length, which is the sum of all inner length.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the object to a PDU.
|
byte[] |
getValue()
Get the raw control encoded bytes
|
void |
setValue(byte[] value)
Set the encoded control value
|
computeLength, getDecoder, getOid, hasValue, isCritical, setCritical, toStringaddLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParentpublic ControlImpl(String oid)
public void setValue(byte[] value)
setValue in interface ControlsetValue in class AbstractControlencodedValue - The encoded control value to storepublic byte[] getValue()
getValue in interface ControlgetValue in class AbstractControlpublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface CodecControlcomputeLength in class AbstractControlpublic ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface CodecControlencode in class AbstractControlbuffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.