|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.walluck.oscar.handlers.filetransfer.FTTLV
File transfer TLV.
Field Summary | |
static int |
SUBTYPE_GET_FILE
Get a file. |
static int |
SUBTYPE_GET_LIST
Get a file/directory listing. |
static int |
SUBTYPE_SEND_DIR
Send a directory. |
static int |
SUBTYPE_SEND_FILE
Send a file. |
Constructor Summary | |
FTTLV()
Creates a new empty FT TLV. |
|
FTTLV(int subtype,
int numFiles,
long totalSize,
java.lang.String name)
Creates a new FileTransfer TLV. |
Method Summary | |
int |
getCharset()
Get the value of charset. |
int |
getCharSubset()
Get the value of charSubset. |
java.lang.String |
getName()
Get the value of name. |
int |
getNumFiles()
Get the value of numFiles. |
int |
getSubtype()
Get the value of subtype. |
long |
getTotalSize()
Get the value of totalSize. |
int |
length()
Return the length of this filetransfer TLV. |
void |
setCharset(int charset)
Set the value of charset. |
void |
setCharSubset(int charSubset)
Set the value of charSubset. |
void |
setName(java.lang.String name)
Set the value of name. |
void |
setNumFiles(int numFiles)
Set the value of numFiles. |
void |
setSubtype(int subtype)
Set the value of subtype. |
void |
setTotalSize(long totalSize)
Set the value of totalSize. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SUBTYPE_SEND_FILE
public static final int SUBTYPE_SEND_DIR
public static final int SUBTYPE_GET_FILE
public static final int SUBTYPE_GET_LIST
Constructor Detail |
public FTTLV()
public FTTLV(int subtype, int numFiles, long totalSize, java.lang.String name)
subtype
- the subtypenumFiles
- the number of filestotalSize
- the total size of the filesname
- the file (or directory) nameMethod Detail |
public int getSubtype()
public void setSubtype(int subtype)
subtype
- Value to assign to subtype.public int getNumFiles()
public void setNumFiles(int numFiles)
numFiles
- Value to assign to numFiles.public long getTotalSize()
public void setTotalSize(long totalSize)
totalSize
- Value to assign to totalSize.public java.lang.String getName()
public void setName(java.lang.String name)
name
- Value to assign to name.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 length()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |