|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jstore.jsync.FileEntry
public class FileEntry
This class contains information on the file to be downloaded
| Field Summary | |
|---|---|
static String |
REVISION
|
| Constructor Summary | |
|---|---|
FileEntry(org.jdom.Element elt)
Constructs a FileEntry from an XML representation |
|
FileEntry(String url,
String path,
long lastModified,
long size,
String ticket)
Constructs a FileEntry |
|
| Method Summary | |
|---|---|
int |
compareTo(FileEntry fileEntry)
|
File |
getFileMarker()
|
String |
getFilename()
Returns the filename of the file to be downloaded. |
long |
getLastModified()
Get the value of lastModified. |
String |
getPath()
Get the value of path. |
long |
getSize()
Get the value of size. |
String |
getTicket()
Get the value of ticket. |
String |
getUrid()
|
String |
getUrl()
Get the value of url. |
void |
setFileMarker(File fileMarker)
|
void |
setLastModified(long v)
Set the value of lastModified. |
void |
setPath(String v)
Set the value of path. |
void |
setSize(long v)
Set the value of size. |
void |
setTicket(String v)
Set the value of ticket. |
void |
setUrid(String urid)
|
void |
setUrl(String v)
Set the value of url. |
String |
toString()
|
String |
toXml()
Returns an XML representation of this FileEntry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String REVISION
| Constructor Detail |
|---|
public FileEntry(String url,
String path,
long lastModified,
long size,
String ticket)
url - the url of the file to be downloadedpath - the relative path of the filelastModified - the last-modified time, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970)size - the size of the filepublic FileEntry(org.jdom.Element elt)
elt - the XML representation| Method Detail |
|---|
public String toXml()
public String getFilename()
public int compareTo(FileEntry fileEntry)
compareTo in interface Comparable<FileEntry>public String getUrl()
public void setUrl(String v)
v - Value to assign to url.public String getPath()
public void setPath(String v)
v - Value to assign to path.public long getLastModified()
public void setLastModified(long v)
v - Value to assign to lastModified.public long getSize()
public void setSize(long v)
v - Value to assign to size.public String getTicket()
public void setTicket(String v)
v - Value to assign to ticket.public String toString()
toString in class Objectpublic File getFileMarker()
public void setFileMarker(File fileMarker)
public String getUrid()
public void setUrid(String urid)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||