public class DirectIMHeader extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DirectIMHeader()
Creates a new Direct IM header.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int DH_TYPE_DIRECT_IM
public static final int DH_FLAGS_IMAGE_DATA
public static final int DH_FLAGS_STOP_TYPING
public static final int DH_FLAGS_START_TYPING
public String getMagic()
public void setMagic(String magic)
magic
- Value to assign to magic.public int getLength()
public void setLength(int length)
length
- Value to assign to length.public int getType()
public void setType(int type)
type
- Value to assign to type.public int getUnknown()
public void setUnknown(int unknown)
unknown
- Value to assign to unknown.public byte[] getCookie()
public void setCookie(byte[] cookie)
cookie
- Value to assign to cookie.public int getPayloadLength()
public void setPayloadLength(int payloadLength)
payloadLength
- Value to assign to payloadLength.public int getCharset()
public void setCharset(int charset)
charset
- Value to assign to charset.public int getCharSubset()
public void setCharSubset(int charSubset)
charSubset
- Value to assign to charSubset.public int getFlags()
public void setFlags(int flags)
flags
- Value to assign to flags.public String getSN()
public void setSN(String sn)
sn
- Value to assign to sn.public byte[] getPayload()
public void setPayload(byte[] payload)
payload
- Value to assign to payload.