Module jcifs

Class SmbShareInfo

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

public class SmbShareInfo extends Object implements FileEntry
Internal use only

This class is intended for internal use.

  • 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, IPC).
    • remark

      protected String remark
      The optional comment or description for the share.
  • Constructor Details

    • SmbShareInfo

      public SmbShareInfo()
      Default constructor for SmbShareInfo.
    • SmbShareInfo

      public SmbShareInfo(String netName, int type, String remark)
      Constructs an SmbShareInfo with the specified properties.
      Parameters:
      netName - the network name of the share
      type - the type of the share
      remark - the optional comment or description for the share
  • Method Details

    • getName

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

      public int getFileIndex()
      Gets the file index.
      Specified by:
      getFileIndex in interface FileEntry
      Returns:
      the file index inside the parent directory
      See Also:
    • getType

      public int getType()
      Description copied from interface: FileEntry
      Gets the file type.
      Specified by:
      getType in interface FileEntry
      Returns:
      the file 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 file 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
    • lastAccess

      public long lastAccess()
      Gets the last access time.
      Specified by:
      lastAccess in interface FileEntry
      Returns:
      the last access time in milliseconds since epoch
      See Also:
    • 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