|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.DirectoryLister
public class DirectoryLister
Directories contains methods for retrieving all file entries starting from a given path. It also goes down the directory tree in search for file entries. A wildcard can be used in searching for file entries. It also contains sort methods to sort file entries. Used by a device buidlers (i.e. Cameras), and by SCAN
| Constructor Summary | |
|---|---|
DirectoryLister()
|
|
| Method Summary | |
|---|---|
Vector |
createThreeItems(Vector<String> sorted,
StringTagger tagger)
This method creates a vector with 3 items: ITEM1=fileentry, ITEM2=moddate, ITEM3=previewfilename if exists else fileentry. |
Vector |
getDirectories(String args)
Returns all filepaths that follow a certain pattern. |
Vector |
reverse(Vector v)
Reverses the elementorder in a vector. |
Vector |
reverse(Vector v,
int items)
Reverses the elementorder in a vector, taking into consideration that the vector consists of sets of elements (items). |
Vector<String> |
sortDirectories(Vector directories,
String comparefield)
Sort a Vector containing file pathnames using a comparefield argument. |
Vector<String> |
sortDirectoriesOnModTime(Vector directories)
Sorts a Vector containing file pathnames on modification time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryLister()
| Method Detail |
|---|
public Vector getDirectories(String args)
args - The requeststring to be used. This string consists of a directory,
followed by an extension.
vector containing all filepaths requested.public Vector<String> sortDirectoriesOnModTime(Vector directories)
Vector containing filepathnames.
public Vector<String> sortDirectories(Vector directories,
String comparefield)
Vector with 2 items : filepath & moddate
public Vector createThreeItems(Vector<String> sorted,
StringTagger tagger)
public Vector reverse(Vector v)
public Vector reverse(Vector v,
int items)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||