com.starla.smb
Class SMBShareInfo2

java.lang.Object
  |
  +--com.starla.smb.SMBShareInfo
        |
        +--com.starla.smb.SMBShareInfo2

public class SMBShareInfo2
extends SMBShareInfo

SMB share info 2 class

The SMBShareInfo2 class contains the level two details of a remote shared resource.


Fields inherited from class com.starla.smb.SMBShareInfo
All, Attrib, Create, Delete, Execute, Perm, Read, Write
 
Method Summary
 int getCurrentUsers()
          Get the current number of users who are connected to the share
 java.lang.String getLocalDevice()
          Return the local path/name of the printer/name of the communications device that the share refers to.
 int getMaximumUsers()
          Get the maximum number of concurrent users that can connect to the share.
 int getPermissions()
          Get the permissions mask for the share
 java.lang.String toString()
          Output the share information as a string
 
Methods inherited from class com.starla.smb.SMBShareInfo
getShareComment, getShareName, getShareType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCurrentUsers

public final int getCurrentUsers()
Get the current number of users who are connected to the share
Returns:
Number of users connected to the share

getLocalDevice

public final java.lang.String getLocalDevice()
Return the local path/name of the printer/name of the communications device that the share refers to.
Returns:
Local name for the shared device.

getMaximumUsers

public final int getMaximumUsers()
Get the maximum number of concurrent users that can connect to the share.
Returns:
Maximum number of concurrent users the share allows, a value of -1 indicates there is no limit.

getPermissions

public final int getPermissions()
Get the permissions mask for the share
Returns:
Permissions mask for this share.

toString

public java.lang.String toString()
Output the share information as a string
Returns:
Share information string.
Overrides:
toString in class SMBShareInfo