java.lang.Object
org.codelibs.jcifs.smb1.SmbShareInfo
- All Implemented Interfaces:
FileEntry
Represents information about an SMB network share.
This class encapsulates the properties of a shared resource on an SMB server.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for SMB share information.SmbShareInfo(String netName, int type, String remark) Constructs SMB share information with specified properties. -
Method Summary
-
Field Details
-
netName
The network name of the share. -
type
protected int typeThe type of the share (e.g., disk, printer, named pipe). -
remark
A descriptive comment or remark about the share.
-
-
Constructor Details
-
SmbShareInfo
public SmbShareInfo()Default constructor for SMB share information. -
SmbShareInfo
Constructs SMB share information with specified properties.- Parameters:
netName- the network name of the sharetype- the type of the shareremark- the descriptive comment about the share
-
-
Method Details
-
getName
Description copied from interface:FileEntryGets the name of the file or directory. -
getType
public int getType()Description copied from interface:FileEntryGets the type of the entry. -
getAttributes
public int getAttributes()Description copied from interface:FileEntryGets the file attributes.- Specified by:
getAttributesin interfaceFileEntry- Returns:
- the file attributes
-
createTime
public long createTime()Description copied from interface:FileEntryGets the creation time.- Specified by:
createTimein interfaceFileEntry- Returns:
- the creation time in milliseconds since epoch
-
lastModified
public long lastModified()Description copied from interface:FileEntryGets the last modified time.- Specified by:
lastModifiedin interfaceFileEntry- Returns:
- the last modified time in milliseconds since epoch
-
length
public long length()Description copied from interface:FileEntryGets the file size. -
equals
-
hashCode
public int hashCode() -
toString
-