|
||||||||||
| 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 java.lang.String |
REVISION
|
| Constructor Summary | |
|---|---|
FileEntry(org.jdom.Element elt)
Constructs a FileEntry from an XML representation |
|
FileEntry(java.lang.String url,
java.lang.String path,
long lastModified,
long size,
java.lang.String ticket)
Constructs a FileEntry |
|
| Method Summary | |
|---|---|
int |
compareTo(FileEntry fileEntry)
|
java.io.File |
getFileMarker()
|
java.lang.String |
getFilename()
Returns the filename of the file to be downloaded. |
long |
getLastModified()
Get the value of lastModified. |
java.lang.String |
getPath()
Get the value of path. |
long |
getSize()
Get the value of size. |
java.lang.String |
getTicket()
Get the value of ticket. |
java.lang.String |
getUrid()
|
java.lang.String |
getUrl()
Get the value of url. |
void |
setFileMarker(java.io.File fileMarker)
|
void |
setLastModified(long v)
Set the value of lastModified. |
void |
setPath(java.lang.String v)
Set the value of path. |
void |
setSize(long v)
Set the value of size. |
void |
setTicket(java.lang.String v)
Set the value of ticket. |
void |
setUrid(java.lang.String urid)
|
void |
setUrl(java.lang.String v)
Set the value of url. |
java.lang.String |
toString()
|
java.lang.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 java.lang.String REVISION
| Constructor Detail |
|---|
public FileEntry(java.lang.String url,
java.lang.String path,
long lastModified,
long size,
java.lang.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 java.lang.String toXml()
public java.lang.String getFilename()
public int compareTo(FileEntry fileEntry)
compareTo in interface java.lang.Comparable<FileEntry>public java.lang.String getUrl()
public void setUrl(java.lang.String v)
v - Value to assign to url.public java.lang.String getPath()
public void setPath(java.lang.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 java.lang.String getTicket()
public void setTicket(java.lang.String v)
v - Value to assign to ticket.public java.lang.String toString()
toString in class java.lang.Objectpublic java.io.File getFileMarker()
public void setFileMarker(java.io.File fileMarker)
public java.lang.String getUrid()
public void setUrid(java.lang.String urid)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||