|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alltimeflashdreamer.filelister.FileListerEntry
Title: FileListerEntry
Description: Very simple value class to store the attributes of one found and accepted file or directory.
Organization: All Time Flash Dreamer
Constructor Summary | |
FileListerEntry(File file,
long lLastIndexed,
String sNodeID)
Reads the settings from a File instance. |
|
FileListerEntry(String sName,
String sDirectory,
long lSizeInBytes,
long lLastModified,
String sType,
long lLastIndexed,
String sNodeID)
Initializes this class with each value. |
Method Summary | |
String |
getDirectory()
Returns the directory setting. |
long |
getLastIndexed()
Returns the time when the file was found/indexed, as a long. |
long |
getLastModified()
Returns the last modification date of this entry, as a long. |
String |
getName()
Returns the name setting. |
org.alltimeflashdreamer.util.Chainable |
getNextEntry()
Returns the pointer to the next entry of the list, if any. |
String |
getNodeID()
Returns the node id of this entry, as defined by the building of the binary tree down from the virtual root directory. |
long |
getSize()
Returns the size (in bytes) of this entry. |
String |
getType()
Returns the type-specifing string (either "D" for directory or "F" for file). |
boolean |
isDirectory()
Returns whether this entry represents a directory or not. |
boolean |
isFile()
Returns whether this entry represents a file or not. |
boolean |
isSelectedForZip()
Tells whether the user selected this entry for download in a zip. |
void |
setNextEntry(org.alltimeflashdreamer.util.Chainable nextEntry)
Sets the pointer to the next file lister entry in the list. |
void |
setSelectedForZip(boolean bIsSelectedForZip)
Sets this entry as selected to be downloaded in a zip. |
void |
setSize(long lSizeInBytes)
Sets the size (in bytes) of this entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileListerEntry(File file, long lLastIndexed, String sNodeID)
file
- the previously found/accepted FilelLastIndexed
- the timestamp when the file was foundsNodeID
- the node if of the file, as defined by the building of
the binary tree down from the virtual root directorypublic FileListerEntry(String sName, String sDirectory, long lSizeInBytes, long lLastModified, String sType, long lLastIndexed, String sNodeID)
sName
- the name of the entrysDirectory
- the directory of the entrylSizeInBytes
- the size of the filelLastModified
- the last modification date of the filesType
- the type descriptor ("F" for file or "D" for directory)lLastIndexed
- the timestamp when the file was foundsNodeID
- the node if of the file, as defined by the building
of the binary tree down from the virtual root directoryMethod Detail |
public String getName()
public String getDirectory()
public long getSize()
public void setSize(long lSizeInBytes)
lSizeInBytes
- the size of this entrypublic long getLastModified()
public boolean isFile()
public boolean isDirectory()
public String getType()
public long getLastIndexed()
public String getNodeID()
public void setNextEntry(org.alltimeflashdreamer.util.Chainable nextEntry)
setNextEntry
in interface org.alltimeflashdreamer.util.Chainable
nextEntry
- the next, preinstantiated FileListerEntry; if null, the
this element becomes the last one of the listpublic org.alltimeflashdreamer.util.Chainable getNextEntry()
getNextEntry
in interface org.alltimeflashdreamer.util.Chainable
public boolean isSelectedForZip()
public void setSelectedForZip(boolean bIsSelectedForZip)
bIsSelectedForZip
- to be added to a download zip?
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |