java.lang.Object
org.codelibs.jcifs.smb.internal.fscc.FileInternalInfo
- All Implemented Interfaces:
Decodable,Encodable,FileInformation
File System Control Code (FSCC) structure for File Internal Information.
Provides access to the file's internal index number, which is a unique identifier
assigned by the file system for internal tracking and reference purposes.
- Author:
- mbechler
-
Field Summary
Fields inherited from interface org.codelibs.jcifs.smb.internal.fscc.FileInformation
FILE_BASIC_INFO, FILE_ENDOFFILE_INFO, FILE_INTERNAL_INFO, FILE_RENAME_INFO, FILE_STANDARD_INFO -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for decoding file internal information. -
Method Summary
Modifier and TypeMethodDescriptionintdecode(byte[] buffer, int bufferIndex, int len) Decode data from a byte bufferintencode(byte[] dst, int dstIndex) Encodes this object into the specified byte array.byteGets the file information level/class for this file information object.longGets the file index number.intsize()Returns the size in bytes that this object will occupy when encoded.toString()
-
Constructor Details
-
FileInternalInfo
public FileInternalInfo()Default constructor for decoding file internal information.
-
-
Method Details
-
getFileInformationLevel
public byte getFileInformationLevel()Gets the file information level/class for this file information object.- Specified by:
getFileInformationLevelin interfaceFileInformation- Returns:
- the file information class
- See Also:
-
getIndexNumber
public long getIndexNumber()Gets the file index number.- Returns:
- the index number assigned by the file system
-
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:
-
size
public int size()Returns the size in bytes that this object will occupy when encoded. -
encode
public int encode(byte[] dst, int dstIndex) Encodes this object into the specified byte array. -
toString
-