public class StunAttributeDecoder extends Object
StunAttribute| Constructor and Description |
|---|
StunAttributeDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static StunAttribute |
decode(byte[] bytes,
char offset,
char length)
Decodes the specified binary array and returns the corresponding
attribute object.
|
public static StunAttribute 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 © 2017 TeleStax, Inc.. All Rights Reserved.