java.lang.Object
org.codelibs.jcifs.smb.internal.fscc.FileBothDirectoryInfo
Represents the FILE_BOTH_DIR_INFORMATION structure used in SMB directory enumeration operations.
This structure contains comprehensive file information including timestamps, attributes, sizes,
short name (8.3 format), and full filename for directory entries.
-
Constructor Summary
ConstructorsConstructorDescriptionFileBothDirectoryInfo(Configuration config, boolean unicode) Constructs a file both directory info. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the file creation time.intdecode(byte[] buffer, int bufferIndex, int len) Decode data from a byte bufferintGets the file attributes.intGets the file index.Gets the filename.getName()Gets the file name.intGets the offset to the next entry.intgetType()Gets the file type.longGets the last access time.longGets the last modified time.longlength()Gets the file size.toString()
-
Constructor Details
-
FileBothDirectoryInfo
Constructs a file both directory info.- Parameters:
config- the configurationunicode- whether to use unicode encoding
-
-
Method Details
-
getName
Description copied from interface:FileEntryGets the file name. -
getType
public int getType()Description copied from interface:FileEntryGets the file type. -
getFileIndex
public int getFileIndex()Description copied from interface:FileEntryGets the file index.- Specified by:
getFileIndexin interfaceFileEntry- Returns:
- the fileIndex
-
getFilename
Gets the filename.- Returns:
- the filename
-
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()Description copied from interface:FileEntryGets the last access time.- Specified by:
lastAccessin interfaceFileEntry- Returns:
- the last access time in milliseconds since epoch
-
length
public long length()Description copied from interface:FileEntryGets the file size. -
getNextEntryOffset
public int getNextEntryOffset()Gets the offset to the next entry.- Returns:
- the next entry offset in bytes
-
decode
Decode data from a byte buffer- Specified by:
decodein interfaceDecodable- Parameters:
buffer- the byte buffer containing the data to decodebufferIndex- the starting index in the bufferlen- the maximum length of data to decode- Returns:
- decoded length
- Throws:
SMBProtocolDecodingException- if decoding fails- See Also:
-
toString
-