|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFileBrowser
public class FileBrowser
FileBrowser class contains main logic for file browsing program.
Field Summary | |
---|---|
private DocumentList |
dl
private data member to store list containing documents |
private DocUploader |
du
private data member to store a reference to object that performs document upload |
Constructor Summary | |
---|---|
FileBrowser()
Constructor takes no input and will create a new DocumentList object and a new DocUploader object. |
Method Summary | |
---|---|
private boolean |
buildList(java.io.File f)
Recursive method that will traverse a directory. |
boolean |
buildList(java.lang.String path)
Top-level method called from Driver. |
void |
viewDocs()
Main logic of the program. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DocumentList dl
private DocUploader du
Constructor Detail |
---|
public FileBrowser()
Method Detail |
---|
public boolean buildList(java.lang.String path)
path
- example: /Users/srollins/Desktop/sampledir
private boolean buildList(java.io.File f)
f
- a File object
public void viewDocs()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |