public class ControlImpl extends AbstractControl
decoder, value, valueLength
parent
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, toString
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public ControlImpl(String oid)
public void setValue(byte[] value)
setValue
in interface Control
setValue
in class AbstractControl
encodedValue
- The encoded control value to storepublic byte[] getValue()
getValue
in interface Control
getValue
in class AbstractControl
public int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface CodecControl
computeLength
in class AbstractControl
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface CodecControl
encode
in class AbstractControl
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.