java.lang.Object
org.codelibs.jcifs.smb.internal.smb1.trans.nt.FileNotifyInformationImpl
- All Implemented Interfaces:
Decodable,FileNotifyInformation
File notification information
- Author:
- mbechler
-
Field Summary
Fields inherited from interface org.codelibs.jcifs.smb.FileNotifyInformation
FILE_ACTION_ADDED, FILE_ACTION_ADDED_STREAM, FILE_ACTION_MODIFIED, FILE_ACTION_MODIFIED_STREAM, FILE_ACTION_REMOVED, FILE_ACTION_REMOVED_BY_DELETE, FILE_ACTION_REMOVED_STREAM, FILE_ACTION_RENAMED_NEW_NAME, FILE_ACTION_RENAMED_OLD_NAME, FILE_NOTIFY_CHANGE_ATTRIBUTES, FILE_NOTIFY_CHANGE_CREATION, FILE_NOTIFY_CHANGE_DIR_NAME, FILE_NOTIFY_CHANGE_EA, FILE_NOTIFY_CHANGE_FILE_NAME, FILE_NOTIFY_CHANGE_LAST_ACCESS, FILE_NOTIFY_CHANGE_LAST_WRITE, FILE_NOTIFY_CHANGE_NAME, FILE_NOTIFY_CHANGE_SECURITY, FILE_NOTIFY_CHANGE_SIZE, FILE_NOTIFY_CHANGE_STREAM_NAME, FILE_NOTIFY_CHANGE_STREAM_SIZE, FILE_NOTIFY_CHANGE_STREAM_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for decoding.FileNotifyInformationImpl(byte[] buffer, int bufferIndex, int len) Constructs a file notify information from the given buffer. -
Method Summary
-
Constructor Details
-
FileNotifyInformationImpl
public FileNotifyInformationImpl()Default constructor for decoding. -
FileNotifyInformationImpl
Constructs a file notify information from the given buffer.- Parameters:
buffer- the buffer containing the notification databufferIndex- the starting index in the bufferlen- 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:FileNotifyInformationGets the action that triggered this notification.- Specified by:
getActionin interfaceFileNotifyInformation- Returns:
- the action triggering this entry (FILE_ACTION_*)
-
getFileName
Description copied from interface:FileNotifyInformationGets the name of the file affected by the action.- Specified by:
getFileNamein interfaceFileNotifyInformation- 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
Description copied from interface:DecodableDecode 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
-
toString
-