|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tencent.mm.sdk.modelmsg.WXFileObject
public class WXFileObject
Field Summary | |
---|---|
byte[] |
fileData
Binary data of the file
文件的二进制数据 |
java.lang.String |
filePath
Local directory of the file 文件的本地路径 |
Fields inherited from interface com.tencent.mm.sdk.modelmsg.WXMediaMessage.IMediaObject |
---|
TYPE_APPDATA, TYPE_EMOJI, TYPE_FILE, TYPE_IMAGE, TYPE_MUSIC, TYPE_PRODUCT, TYPE_TEXT, TYPE_UNKNOWN, TYPE_URL, TYPE_VIDEO |
Constructor Summary | |
---|---|
WXFileObject()
|
|
WXFileObject(byte[] fileData)
Constructor 构造函数 |
|
WXFileObject(java.lang.String filePath)
Constructor 构造函数 |
Method Summary | |
---|---|
boolean |
checkArgs()
Check validity of parameters of MediaObject
检查该MediaObject各个参数的合法性 |
void |
serialize(Bundle data)
Serialize member variables to bundle object 将成员变量序列化到bundle对象中 |
void |
setContentLengthLimit(int limit)
|
void |
setFileData(byte[] fileData)
|
void |
setFilePath(java.lang.String filePath)
|
int |
type()
Load type of the current media object 获取当前媒体对象的类型 |
void |
unserialize(Bundle data)
Deserialize bundle object to initialize member variables 通过反序列化bundle对象初始化成员变量 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public byte[] fileData
public java.lang.String filePath
Constructor Detail |
---|
public WXFileObject()
public WXFileObject(byte[] fileData)
fileData
- public WXFileObject(java.lang.String filePath)
filePath
- Method Detail |
---|
public void setFileData(byte[] fileData)
public void setFilePath(java.lang.String filePath)
public void serialize(Bundle data)
WXMediaMessage.IMediaObject
serialize
in interface WXMediaMessage.IMediaObject
data
- public void unserialize(Bundle data)
WXMediaMessage.IMediaObject
unserialize
in interface WXMediaMessage.IMediaObject
data
- public int type()
WXMediaMessage.IMediaObject
type
in interface WXMediaMessage.IMediaObject
public void setContentLengthLimit(int limit)
public boolean checkArgs()
WXMediaMessage.IMediaObject
checkArgs
in interface WXMediaMessage.IMediaObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |