|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalmed.file.DirectoryVisitor
public final class DirectoryVisitor
This class retrieves the content of a given directory.
Constructor Summary | |
---|---|
DirectoryVisitor()
Create a directory visitor. |
Method Summary | |
---|---|
void |
fill(javax.microedition.lcdui.List list,
IDirectory directory)
Lists alphabetically the directories and files contained in a given directory. |
void |
visitDirectory(java.lang.String name)
Visit a directory. |
void |
visitFile(java.lang.String name)
Visit a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryVisitor()
Method Detail |
---|
public void fill(javax.microedition.lcdui.List list, IDirectory directory) throws java.io.IOException
list
- the list to filldirectory
- the directory to visit
java.io.IOException
- an io exception occuredpublic void visitFile(java.lang.String name)
visitFile
in interface IDirectoryVisitor
name
- the file namepublic void visitDirectory(java.lang.String name)
visitDirectory
in interface IDirectoryVisitor
name
- the directory name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |