Module jcifs

Class SmbShareInfo

java.lang.Object
org.codelibs.jcifs.smb1.SmbShareInfo
All Implemented Interfaces:
FileEntry

public class SmbShareInfo extends Object implements FileEntry
Represents information about an SMB network share. This class encapsulates the properties of a shared resource on an SMB server.
  • Field Details

    • netName

      protected String netName
      The network name of the share.
    • type

      protected int type
      The type of the share (e.g., disk, printer, named pipe).
    • remark

      protected String remark
      A descriptive comment or remark about the share.
  • Constructor Details

    • SmbShareInfo

      public SmbShareInfo()
      Default constructor for SMB share information.
    • SmbShareInfo

      public SmbShareInfo(String netName, int type, String remark)
      Constructs SMB share information with specified properties.
      Parameters:
      netName - the network name of the share
      type - the type of the share
      remark - the descriptive comment about the share
  • Method Details

    • getName

      public String getName()
      Description copied from interface: FileEntry
      Gets the name of the file or directory.
      Specified by:
      getName in interface FileEntry
      Returns:
      the file or directory name
    • getType

      public int getType()
      Description copied from interface: FileEntry
      Gets the type of the entry.
      Specified by:
      getType in interface FileEntry
      Returns:
      the entry type
    • getAttributes

      public int getAttributes()
      Description copied from interface: FileEntry
      Gets the file attributes.
      Specified by:
      getAttributes in interface FileEntry
      Returns:
      the file attributes
    • createTime

      public long createTime()
      Description copied from interface: FileEntry
      Gets the creation time.
      Specified by:
      createTime in interface FileEntry
      Returns:
      the creation time in milliseconds since epoch
    • lastModified

      public long lastModified()
      Description copied from interface: FileEntry
      Gets the last modified time.
      Specified by:
      lastModified in interface FileEntry
      Returns:
      the last modified time in milliseconds since epoch
    • length

      public long length()
      Description copied from interface: FileEntry
      Gets the file size.
      Specified by:
      length in interface FileEntry
      Returns:
      the file size in bytes
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object