public class AttributeDecoder extends Object
Constructor and Description |
---|
AttributeDecoder() |
Modifier and Type | Method and Description |
---|---|
static Attribute |
decode(byte[] bytes,
char offset,
char length)
Decodes the specified binary array and returns the corresponding
attribute object.
|
public static Attribute decode(byte[] bytes, char offset, char length) throws StunException
bytes
- the binary array that should be decoded.offset
- the index where the message starts.length
- the number of bytes that the message is long.StunException
- if bytes is not a valid STUN attribute.Copyright © 2018. All rights reserved.