org.gnu.mp3Spider
Class SmbLs

java.lang.Object
  |
  +--org.gnu.mp3Spider.SmbLs

class SmbLs
extends java.lang.Object

This class lists the contents of a share recursively.

Since:
0.1

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

java.util.Vector list
The Vector that holds all the results. Each element contains the fully qualified pathname of the requested file.

onlyExt

java.lang.String onlyExt
Search for these extensions only.
Constructor Detail

SmbLs

SmbLs(java.lang.String onlyExt)
Constructor
Parameters:
onlyExt - Will only search for files ending with these extensions.
Method Detail

recList

void recList(CifsDisk disk,
             java.lang.String path)
       throws java.io.IOException
This will add all requested files into the Vector.
Parameters:
disk - see Cifs documentation
path - the path from where to search. This will be of the form //Machine/share. All requested files will be listed under this share.

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
This is mainly used as a stand alone tool to list all contents of a given share.
Parameters:
args[0] - Machine name
args[1] - Username to log in to the domain.
args[2] - Password to use.
args[3] - Optional ending extension to search for. Default is mp3.