java.lang.Object
org.codelibs.jcifs.smb.internal.smb1.net.SmbShareInfo
- All Implemented Interfaces:
FileEntry
Internal use only
This class is intended for internal use.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for SmbShareInfo.SmbShareInfo(String netName, int type, String remark) Constructs an SmbShareInfo with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the file creation time.booleanintGets the file attributes.intGets the file index.getName()Gets the file name.intgetType()Gets the file type.inthashCode()longGets the last access time.longGets the last modified time.longlength()Gets the file size.toString()
-
Field Details
-
netName
The network name of the share. -
type
protected int typeThe type of the share (e.g., disk, printer, IPC). -
remark
The optional comment or description for the share.
-
-
Constructor Details
-
SmbShareInfo
public SmbShareInfo()Default constructor for SmbShareInfo. -
SmbShareInfo
Constructs an SmbShareInfo with the specified properties.- Parameters:
netName- the network name of the sharetype- the type of the shareremark- the optional comment or description for the share
-
-
Method Details
-
getName
Description copied from interface:FileEntryGets the file name. -
getFileIndex
public int getFileIndex()Gets the file index.- Specified by:
getFileIndexin interfaceFileEntry- Returns:
- the file index inside the parent directory
- See Also:
-
getType
public int getType()Description copied from interface:FileEntryGets the file type. -
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 file 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
-
lastAccess
public long lastAccess()Gets the last access time.- Specified by:
lastAccessin interfaceFileEntry- Returns:
- the last access time in milliseconds since epoch
- See Also:
-
length
public long length()Description copied from interface:FileEntryGets the file size. -
equals
-
hashCode
public int hashCode() -
toString
-