com.starla.smb
Class SMBShareList

java.lang.Object
  |
  +--com.starla.smb.SMBShareList

public final class SMBShareList
extends java.lang.Object

SMB share list class

The SMBShareList contains a list of SMBShareInfo, or SMBShareInfo derived, objects.

The SMBAdminSession.getShareList () returns an SMBShareList for the remote server.


Constructor Summary
SMBShareList()
          Class constructor
 
Method Summary
 void addShareInfo(SMBShareInfo shrinf)
          Add a share information object to the list.
 void clearList()
          Clear all share information objects from the list
 SMBShareInfo getShareInfo(int idx)
          Get a share information object from the list
 int NumberOfShares()
          Get the number of shares in the list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMBShareList

public SMBShareList()
Class constructor
Method Detail

addShareInfo

public final void addShareInfo(SMBShareInfo shrinf)
Add a share information object to the list.
Parameters:
shrinf - SMBShareInfo to add to the list.

clearList

public final void clearList()
Clear all share information objects from the list

getShareInfo

public final SMBShareInfo getShareInfo(int idx)
                                throws java.lang.ArrayIndexOutOfBoundsException
Get a share information object from the list
Parameters:
idx - Index of the share information to return
Returns:
SMBShareInfo for the required share.
Throws:
java.lang.ArrayIndexOutOfBoundsException - If the index is invalid

NumberOfShares

public final int NumberOfShares()
Get the number of shares in the list
Returns:
Number of SMBShareInfo objects in the list.