org.walluck.oscar.handlers.directim
Class DirectIMHeader

java.lang.Object
  extended by org.walluck.oscar.handlers.directim.DirectIMHeader

public class DirectIMHeader
extends Object

Handles DirectIM packets.

Since:
1.0
Version:
1.0
Author:
David Walluck

Field Summary
static int DH_FLAGS_IMAGE_DATA
          Image data.
static int DH_FLAGS_START_TYPING
          Start typing.
static int DH_FLAGS_STOP_TYPING
          Stop typing.
static int DH_TYPE_DIRECT_IM
          Direct IM follows.
 
Constructor Summary
DirectIMHeader()
          Creates a new Direct IM header.
 
Method Summary
 int getCharset()
          Get the value of charset.
 int getCharSubset()
          Get the value of charSubset.
 byte[] getCookie()
          Get the value of cookie.
 int getFlags()
          Get the value of flags.
 int getLength()
          Get the value of length.
 String getMagic()
          Get the value of magic.
 byte[] getPayload()
          Get the value of payload.
 int getPayloadLength()
          Get the value of payloadLength.
 String getSN()
          Get the value of sn.
 int getType()
          Get the value of type.
 int getUnknown()
          Get the value of unknown.
 void setCharset(int charset)
          Set the value of charset.
 void setCharSubset(int charSubset)
          Set the value of charSubset.
 void setCookie(byte[] cookie)
          Set the value of cookie.
 void setFlags(int flags)
          Set the value of flags.
 void setLength(int length)
          Set the value of length.
 void setMagic(String magic)
          Set the value of magic.
 void setPayload(byte[] payload)
          Set the value of payload.
 void setPayloadLength(int payloadLength)
          Set the value of payloadLength.
 void setSN(String sn)
          Set the value of sn.
 void setType(int type)
          Set the value of type.
 void setUnknown(int unknown)
          Set the value of unknown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DH_TYPE_DIRECT_IM

public static final int DH_TYPE_DIRECT_IM
Direct IM follows.

See Also:
Constant Field Values

DH_FLAGS_IMAGE_DATA

public static final int DH_FLAGS_IMAGE_DATA
Image data.

See Also:
Constant Field Values

DH_FLAGS_STOP_TYPING

public static final int DH_FLAGS_STOP_TYPING
Stop typing.

See Also:
Constant Field Values

DH_FLAGS_START_TYPING

public static final int DH_FLAGS_START_TYPING
Start typing.

See Also:
Constant Field Values
Constructor Detail

DirectIMHeader

public DirectIMHeader()
Creates a new Direct IM header.

Method Detail

getMagic

public String getMagic()
Get the value of magic.

Returns:
value of magic.

setMagic

public void setMagic(String magic)
Set the value of magic.

Parameters:
magic - Value to assign to magic.

getLength

public int getLength()
Get the value of length.

Returns:
value of length.

setLength

public void setLength(int length)
Set the value of length.

Parameters:
length - Value to assign to length.

getType

public int getType()
Get the value of type.

Returns:
value of type.

setType

public void setType(int type)
Set the value of type.

Parameters:
type - Value to assign to type.

getUnknown

public int getUnknown()
Get the value of unknown.

Returns:
value of unknown.

setUnknown

public void setUnknown(int unknown)
Set the value of unknown.

Parameters:
unknown - Value to assign to unknown.

getCookie

public byte[] getCookie()
Get the value of cookie.

Returns:
value of cookie.

setCookie

public void setCookie(byte[] cookie)
Set the value of cookie.

Parameters:
cookie - Value to assign to cookie.

getPayloadLength

public int getPayloadLength()
Get the value of payloadLength.

Returns:
value of payloadLength.

setPayloadLength

public void setPayloadLength(int payloadLength)
Set the value of payloadLength.

Parameters:
payloadLength - Value to assign to payloadLength.

getCharset

public int getCharset()
Get the value of charset.

Returns:
value of charset.

setCharset

public void setCharset(int charset)
Set the value of charset.

Parameters:
charset - Value to assign to charset.

getCharSubset

public int getCharSubset()
Get the value of charSubset.

Returns:
value of charSubset.

setCharSubset

public void setCharSubset(int charSubset)
Set the value of charSubset.

Parameters:
charSubset - Value to assign to charSubset.

getFlags

public int getFlags()
Get the value of flags.

Returns:
value of flags.

setFlags

public void setFlags(int flags)
Set the value of flags.

Parameters:
flags - Value to assign to flags.

getSN

public String getSN()
Get the value of sn.

Returns:
value of sn.

setSN

public void setSN(String sn)
Set the value of sn.

Parameters:
sn - Value to assign to sn.

getPayload

public byte[] getPayload()
Get the value of payload.

Returns:
value of payload.

setPayload

public void setPayload(byte[] payload)
Set the value of payload.

Parameters:
payload - Value to assign to payload.