|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.mp3Spider.SmbLs
This class lists the contents of a share recursively.
Field Summary | |
(package private) java.util.Vector |
list
The Vector that holds all the results. |
(package private) java.lang.String |
onlyExt
Search for these extensions only. |
Constructor Summary | |
(package private) |
SmbLs(java.lang.String onlyExt)
Constructor |
Method Summary | |
static void |
main(java.lang.String[] args)
This is mainly used as a stand alone tool to list all contents of a given share. |
(package private) void |
recList(CifsDisk disk,
java.lang.String path)
This will add all requested files into the Vector. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.util.Vector list
java.lang.String onlyExt
Constructor Detail |
SmbLs(java.lang.String onlyExt)
onlyExt
- Will only search for files ending with these
extensions.Method Detail |
void recList(CifsDisk disk, java.lang.String path) throws java.io.IOException
disk
- see Cifs documentationpath
- the path from where to search. This will be of the
form //Machine/share. All requested files will be listed under this
share.public static void main(java.lang.String[] args) throws java.io.IOException
args[0]
- Machine nameargs[1]
- Username to log in to the domain.args[2]
- Password to use.args[3]
- Optional ending extension to search for. Default
is mp3.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |