Package jcifs.internal.smb1.trans.nt
Class FileNotifyInformationImpl
- java.lang.Object
-
- jcifs.internal.smb1.trans.nt.FileNotifyInformationImpl
-
- All Implemented Interfaces:
Decodable
,FileNotifyInformation
public class FileNotifyInformationImpl extends Object implements FileNotifyInformation, Decodable
File notification information- Author:
- mbechler
-
-
Field Summary
-
Fields inherited from interface jcifs.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
Constructors Constructor Description FileNotifyInformationImpl()
FileNotifyInformationImpl(byte[] buffer, int bufferIndex, int len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
decode(byte[] buffer, int bufferIndex, int len)
int
getAction()
String
getFileName()
int
getNextEntryOffset()
String
toString()
-
-
-
Constructor Detail
-
FileNotifyInformationImpl
public FileNotifyInformationImpl()
-
FileNotifyInformationImpl
public FileNotifyInformationImpl(byte[] buffer, int bufferIndex, int len) throws IOException
- Parameters:
buffer
-bufferIndex
-len
-- Throws:
IOException
-
-
Method Detail
-
getAction
public int getAction()
- Specified by:
getAction
in interfaceFileNotifyInformation
- Returns:
- the action triggering this entry (FILE_ACTION_*)
-
getFileName
public String getFileName()
- Specified by:
getFileName
in interfaceFileNotifyInformation
- Returns:
- the file name affected by the action
-
getNextEntryOffset
public int getNextEntryOffset()
- Returns:
- the nextEntryOffset
-
decode
public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException
- Specified by:
decode
in interfaceDecodable
- Returns:
- decoded length
- Throws:
SMBProtocolDecodingException
-
-