JxFileWatcher是一個跨平臺的庫,提供方便的Java API文件系統監測事件。它適用于Windows、Linux和Mac OS X平臺,并支持32位和64位版本的操作系統。
JxFileWatcher is a cross-platform library that provides convenient Java API for monitoring file system events. It is available for Windows, Linux and Mac OS X platforms and supports both 32 and 64-bit versions of these OS.
基本的文件操作
監測創建、重命名或刪除文件及指定文件夾內的子文件夾。
文件訪問監測
當訪問或修改日期變更時,您將收到相關事件的通知。
監測屬性變化
關于文件大小和屬性的任何改變都將被通知。這些文件屬性是在Windows平臺上的系統、隱藏、只讀和存檔屬性,以及在Linux和Mac系統上的讀、寫和執行屬性。
支持不同的文件系統
JxFileWatcher支持不同的文件系統類型,并總是在指定監測目錄中針對文件系統監測事件使用最好的算法。
限制監測范圍
您可以監測所有文件的事件或通過事件和文件過濾器指定。在選擇指定目錄的文件或包含所有它的子目錄文件都能被監測到。
Basic File Operations
Watch for creation, renaming or removal of files and subfolders within the specified folder.
File Access Monitoring
You will be able to receive notifications about events when access or modification date is changed.
Watch Properties Change
Be notified about any changes to file size and attributes. These are System, Hidden, Read only and Archived attributes for Windows platforms, and Read, Write and Execute attributes for Linux and Mac systems.
Support for Different File Systems
JxFileWatcher supports different file system types and always uses the best algorithm for monitoring file system events in a specified watching directory.
Limit Watching Scope
You can watch for all file events or just for specified by the event and file filters. The files can be watched inside the selected folder only or including all its subfolders.