|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.walluck.oscar.AIMFrame
A frame is an object holding all of the underlying layers: FLAP, SNAC, and ICQPacket.
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AIMFrame()
public AIMFrame(AIMConnection conn, ICQPacket icqPacket, AIMOutputStream buffer) throws java.io.IOException
conn
- the connectionicqPacket
- the ICQ packetbuffer
- the buffer
java.io.IOException
- if an error occurspublic AIMFrame(AIMConnection conn, int type, AIMInputStream buffer) throws java.io.IOException
conn
- the connection this frame is coming in ontype
- the type of framebuffer
- the incoming buffer
java.io.IOException
- if an error occurspublic AIMFrame(AIMConnection conn, int type, FLAP flap, SNAC snac, AIMOutputStream buffer) throws java.io.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 buffer
java.io.IOException
- if an error occursAIMConstants
Method Detail |
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |