Module jcifs

Class FileInternalInfo

java.lang.Object
org.codelibs.jcifs.smb.internal.fscc.FileInternalInfo
All Implemented Interfaces:
Decodable, Encodable, FileInformation

public class FileInternalInfo extends Object implements 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
  • 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:
      getFileInformationLevel in interface FileInformation
      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

      public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException
      Decode data from a byte buffer
      Specified by:
      decode in interface Decodable
      Parameters:
      buffer - the byte buffer containing the data to decode
      bufferIndex - the starting index in the buffer
      len - 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.
      Specified by:
      size in interface Encodable
      Returns:
      the encoded size
      See Also:
    • encode

      public int encode(byte[] dst, int dstIndex)
      Encodes this object into the specified byte array.
      Specified by:
      encode in interface Encodable
      Parameters:
      dst - the destination byte array to encode into
      dstIndex - the starting index in the destination array
      Returns:
      encoded length
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object