public class XIDGroup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
byte |
formatIdentifier
Format Identifier (FI) of the XID frame; must always be 0x82 (general-purpose information)
for the AX.25 protocol.
|
byte |
groupIdentifier
Group Identifier (GI) of the XID frame; must always be 0x80 (parameter negotiation)
for the AX.25 protocol.
|
java.util.ArrayList<XIDParameter> |
paramList
List of
XIDParameter s contained in this XIDGroup frame. |
Constructor and Description |
---|
XIDGroup()
Create an empty XIDGroup with the AX.25 default FI/GI.
|
Modifier and Type | Method and Description |
---|---|
int |
getGroupLength()
Get the number of bytes needed to encode the list of XIDParameters in this XIDGroup.
|
static XIDGroup |
read(java.io.DataInput dis)
Read an XIDGroup from an input byte stream.
|
void |
write(java.io.DataOutput dos)
Write the XIDGroup to a byte stream.
|
public byte formatIdentifier
public byte groupIdentifier
public final java.util.ArrayList<XIDParameter> paramList
XIDParameter
s contained in this XIDGroup frame.public XIDGroup()
public void write(java.io.DataOutput dos) throws java.io.IOException
dos
- DataOutput to write the XIDGroup tojava.io.IOException
- if write fails for any reasonpublic int getGroupLength()
public static XIDGroup read(java.io.DataInput dis) throws java.io.IOException
dis
- DataInput to read the XIDGroup fromjava.io.IOException
- if read fails for any reason