Module jcifs

Class FileNotifyInformationImpl

java.lang.Object
org.codelibs.jcifs.smb.internal.smb1.trans.nt.FileNotifyInformationImpl
All Implemented Interfaces:
Decodable, FileNotifyInformation

public class FileNotifyInformationImpl extends Object implements FileNotifyInformation, Decodable
File notification information
Author:
mbechler
  • Constructor Details

    • FileNotifyInformationImpl

      public FileNotifyInformationImpl()
      Default constructor for decoding.
    • FileNotifyInformationImpl

      public FileNotifyInformationImpl(byte[] buffer, int bufferIndex, int len) throws IOException
      Constructs a file notify information from the given buffer.
      Parameters:
      buffer - the buffer containing the notification data
      bufferIndex - the starting index in the buffer
      len - the length of data to decode
      Throws:
      IOException - if an I/O error occurs during decoding
  • Method Details

    • getAction

      public int getAction()
      Description copied from interface: FileNotifyInformation
      Gets the action that triggered this notification.
      Specified by:
      getAction in interface FileNotifyInformation
      Returns:
      the action triggering this entry (FILE_ACTION_*)
    • getFileName

      public String getFileName()
      Description copied from interface: FileNotifyInformation
      Gets the name of the file affected by the action.
      Specified by:
      getFileName in interface FileNotifyInformation
      Returns:
      the file name affected by the action
    • getNextEntryOffset

      public int getNextEntryOffset()
      Gets the offset to the next entry.
      Returns:
      the next entry offset in bytes
    • decode

      public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException
      Description copied from interface: Decodable
      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
    • toString

      public String toString()
      Overrides:
      toString in class Object