public static class StreamInitiation.File extends Object implements ExtensionElement
| Constructor and Description |
|---|
File(String name,
long size)
Constructor providing the name of the file and its size.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getDate()
Returns the date that the file was last modified.
|
String |
getDesc()
Returns the description of the file.
|
String |
getElementName()
Returns the root element name.
|
String |
getHash()
Returns the MD5 sum of the file's contents
|
String |
getName()
Returns the file's name.
|
String |
getNamespace()
Returns the root element XML namespace.
|
long |
getSize()
Returns the file's size.
|
boolean |
isRanged()
Returns whether or not the initiator can support a range for the file
tranfer.
|
void |
setDate(Date date)
Sets the date that the file was last modified.
|
void |
setDesc(String desc)
Sets the description of the file.
|
void |
setHash(String hash)
Sets the MD5 sum of the file's contents
|
void |
setRanged(boolean isRanged)
True if a range can be provided and false if it cannot.
|
String |
toXML()
Returns the XML representation of this Element.
|
public long getSize()
public void setHash(String hash)
hash - The MD5 sum of the file's contents.public String getHash()
public void setDate(Date date)
date - The date that the file was last modified.public Date getDate()
public void setDesc(String desc)
desc - The description of the file so that the file reciever can
know what file it is.public String getDesc()
public void setRanged(boolean isRanged)
isRanged - True if a range can be provided and false if it cannot.public boolean isRanged()
public String getElementName()
NamedElementgetElementName in interface NamedElementpublic String getNamespace()
ExtensionElementgetNamespace in interface ExtensionElement