public class FTTLV extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
FTTLV()
Creates a new empty FT TLV.
|
FTTLV(int subtype,
int numFiles,
long totalSize,
String name)
Creates a new FileTransfer TLV.
|
Modifier and Type | Method and Description |
---|---|
int |
getCharset()
Get the value of charset.
|
int |
getCharSubset()
Get the value of charSubset.
|
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(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.
|
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
public FTTLV()
public FTTLV(int subtype, int numFiles, long totalSize, String name)
subtype
- the subtypenumFiles
- the number of filestotalSize
- the total size of the filesname
- the file (or directory) namepublic 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 String getName()
public void setName(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()