|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jml.MsnObject
public final class MsnObject
This class represents a MsnObject from the MSN protocol.
Field Summary | |
---|---|
static int |
TYPE_ADDIN_SAVED_STATE
Type for Add in saved state. |
static int |
TYPE_BACKGROUND
Type for background. |
static int |
TYPE_CUSTOM_EMOTICON
Type for custom emoticons. |
static int |
TYPE_DISPLAY_PICTURE
Type for siaplay picture. |
static int |
TYPE_DYNAMIC_DISPLAY_PICTURE
Type for dinamic display picture. |
static int |
TYPE_MSNP15_LOCATION
Type for Location |
static int |
TYPE_VOICE_CLIP
Type for voice clips. |
static int |
TYPE_WINKS
Type for winks. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
String |
getCreator()
Retrieve the creator for this MsnObject. |
String |
getFriendly()
Retrieves the friendly name of the MsnObject. |
static MsnObject |
getInstance(String creator,
byte[] picture)
Create an instance of MsnObject for a display picture. |
static MsnObject |
getInstance(String creator,
String pictureFileName)
Create an instance of MsnObject for a display picture. |
String |
getLocation()
Retrieves the location for this MsnObject. |
byte[] |
getMsnObj()
Retrieves the MsnObject local data. |
String |
getSha1c()
Retrieves the SHA value for the MsnObject properties data. |
String |
getSha1d()
Retrieves the SHA of the MsnObject data. |
long |
getSize()
Retrieves the size of the MsnObject data. |
int |
getType()
Retrieves the type for the MsnObject. |
int |
hashCode()
|
static MsnObject |
parseMsnObject(String msnObject)
Create a MsnObject instance from its representation as XML. |
void |
setCreator(String creator)
Sets the creator for this MsnObject. |
void |
setFriendly(String friendly)
Sets the friendly name for the MsnObject. |
void |
setLocation(String location)
Sets the location for this MsnObject. |
void |
setSha1c(String sha1c)
Sets the new SHA value for the MsnObject properties data. |
void |
setSha1d(String sha1d)
Sets the new SHA value for the MsnObject data. |
void |
setSize(long size)
Sets the new size for the MsnObject. |
void |
setType(int type)
Sets the type for this MsnObject. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_CUSTOM_EMOTICON
public static final int TYPE_DISPLAY_PICTURE
public static final int TYPE_BACKGROUND
public static final int TYPE_DYNAMIC_DISPLAY_PICTURE
public static final int TYPE_WINKS
public static final int TYPE_VOICE_CLIP
public static final int TYPE_ADDIN_SAVED_STATE
public static final int TYPE_MSNP15_LOCATION
Method Detail |
---|
public static MsnObject getInstance(String creator, byte[] picture) throws JmlException
creator
- Creator of the MsnObject.picture
- Data for the MsnObject.
JmlException
- If an error happens.public static MsnObject getInstance(String creator, String pictureFileName) throws JmlException
creator
- Creator of the MsnObject.pictureFileName
- Filename where the picture object is stored.
JmlException
- If an error happens.public static MsnObject parseMsnObject(String msnObject)
msnObject
- XML representation of the MsnObject.
public String getCreator()
public void setCreator(String creator)
creator
- New creator for this MsnObject.public long getSize()
public void setSize(long size)
size
- the size to set Size for the data of the MsnObject.public int getType()
public void setType(int type)
type
- Type for the MsnObject.public String getLocation()
public void setLocation(String location)
location
- Location for this MsnObject.public String getFriendly()
public void setFriendly(String friendly)
friendly
- New Friendly name.public String getSha1d()
public void setSha1d(String sha1d)
sha1d
- the sha1d to set.public String getSha1c()
public void setSha1c(String sha1c)
sha1c
- the sha1c to set.public byte[] getMsnObj()
public String toString()
toString
in class Object
Object.toString()
public boolean equals(Object object)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |