public class FLAP extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ASTERISK
The asterisk.
|
static int |
MAX_LENGTH
The maximum FLAP length (maximum short value minus the 6 byte header
length).
|
static int |
VERSION
The FLAP version we support.
|
| Constructor and Description |
|---|
FLAP(int channel)
Creates a new outgoing FLAP with the specified channel.
|
FLAP(int command,
int channel,
int seqNum,
int length)
Creates a new incoming FLAP.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getChannel()
Get the value of channel.
|
int |
getCommand()
Get the value of command.
|
int |
getLength()
Get the value of length.
|
int |
getSeqNum()
Get the value of seqNum.
|
void |
setLength(int length)
Set the value of length.
|
void |
setSeqNum(int seqNum)
Set the value of seqNum.
|
public static final int MAX_LENGTH
public static final int VERSION
public static final int ASTERISK
public FLAP(int channel)
channel - the FLAP channelpublic FLAP(int command,
int channel,
int seqNum,
int length)
throws IOException
command - the FLAP commandchannel - the FLAP channelseqNum - the FLAP sequence numberlength - the FLAP lengthIOException - if an error occurspublic int getCommand()
public int getChannel()
public int getSeqNum()
public void setSeqNum(int seqNum)
seqNum - Value to assign to seqNum.public int getLength()
public void setLength(int length)
throws IOException
length - Value to assign to length.IOException - if an error occurs