|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFlapPacket
Represents a FLAP packet, containing a sequence number, channel, and FLAP data.
Field Summary | |
static int |
CHANNEL_CLOSE
The "closing" FLAP channel, channel 4. |
static int |
CHANNEL_ERROR
The "error" FLAP channel, channel 3. |
static int |
CHANNEL_LOGIN
The "login" FLAP channel, channel 1. |
static int |
CHANNEL_SNAC
The "SNAC" FLAP channel, channel 2. |
static int |
MAX_DATA_LEN
The maximum length of FLAP data contained in a FLAP packet. |
Method Summary | |
int |
getChannel()
Returns this packet's FLAP channel. |
ByteBlock |
getData()
Returns the FLAP data associated with this packet. |
int |
getSeqnum()
Returns this packet's sequence number. |
java.lang.String |
toString()
|
void |
write(java.io.OutputStream out)
Writes this FLAP packet to the given stream, generating FLAP data from the associated FlapCommand if necessary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CHANNEL_LOGIN
public static final int CHANNEL_SNAC
public static final int CHANNEL_ERROR
public static final int CHANNEL_CLOSE
public static final int MAX_DATA_LEN
Method Detail |
public final int getSeqnum()
public final int getChannel()
public final ByteBlock getData()
null
if this is an outgoing packet and the FLAP data have
not yet been written to a connection, and thus have not yet been stored
locally.
null
if the data have
not yet been generatedpublic void write(java.io.OutputStream out) throws FlapDataLengthException, java.io.IOException
FlapCommand
if necessary.
write
in interface LiveWritable
out
- the stream to which to write
FlapDataLengthException
- if, during FLAP data generation, the FLAP
data length is too large to hold in a FLAP packet
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |