public class AIMFrame extends Object
Constructor and Description |
---|
AIMFrame()
Creates a new empty frame.
|
AIMFrame(AIMConnection conn,
ICQPacket icqPacket,
AIMOutputStream buffer)
Creates a new Frame from an ICQ packet.
|
AIMFrame(AIMConnection conn,
int type,
AIMInputStream buffer)
Creates a new incoming frame.
|
AIMFrame(AIMConnection conn,
int type,
FLAP flap,
SNAC snac,
AIMOutputStream buffer)
Creates a new outgoing frame.
|
Modifier and Type | Method and Description |
---|---|
AIMConnection |
getConn()
Get the value of conn.
|
byte[] |
getData()
Get the value of data.
|
FLAP |
getFLAP()
Get the value of flap.
|
ICQPacket |
getICQPacket()
Get the value of icqPacket.
|
int |
getLength()
Get the value of length.
|
SNAC |
getSNAC()
Get the value os snac.
|
int |
getType()
Get the value of type.
|
boolean |
isHandled()
Get the value of handled.
|
void |
setConn(AIMConnection conn)
Set the value of conn.
|
void |
setData(byte[] data)
Set the value of data.
|
void |
setFLAP(FLAP flap)
Set the value of flap.
|
void |
setHandled(boolean handled)
Set the value of handled.
|
void |
setICQPacket(ICQPacket icqPacket)
Set the value of icqPacket.
|
void |
setLength(int length)
Set the value of length.
|
void |
setSNAC(SNAC snac)
Set the value of snac.
|
void |
setType(int type)
Set the value of type.
|
public AIMFrame()
public AIMFrame(AIMConnection conn, ICQPacket icqPacket, AIMOutputStream buffer) throws IOException
conn
- the connectionicqPacket
- the ICQ packetbuffer
- the bufferIOException
- if an error occurspublic AIMFrame(AIMConnection conn, int type, AIMInputStream buffer) throws IOException
conn
- the connection this frame is coming in ontype
- the type of framebuffer
- the incoming bufferIOException
- if an error occurspublic AIMFrame(AIMConnection conn, int type, FLAP flap, SNAC snac, AIMOutputStream buffer) throws IOException
conn
- the connection this frame is going out ontype
- the type of connection (AIMConstants.AIM_FRAMETYPE_FLAP
only)flap
- the outgoing FLAPsnac
- the outgoing SNACbuffer
- the outgoing bufferIOException
- if an error occursAIMConstants
public AIMConnection getConn()
public void setConn(AIMConnection conn)
conn
- Value to assign to conn.public int getType()
public void setType(int type)
type
- Value to assign to type.public byte[] getData()
public void setData(byte[] data)
data
- Value to assign to data.public boolean isHandled()
public void setHandled(boolean handled)
handled
- Value to assign to handled.public FLAP getFLAP()
public void setFLAP(FLAP flap)
flap
- Value to assign to flap.public SNAC getSNAC()
public void setSNAC(SNAC snac)
snac
- Value to assign to snac.public int getLength()
public void setLength(int length)
length
- Value to assign to length.public ICQPacket getICQPacket()
public void setICQPacket(ICQPacket icqPacket)
icqPacket
- Value to assign to icqPacket.