I want to monitor a folder located on another computer using the FileSystemWatcher
.
如何做到这一点?
I want to monitor a folder located on another computer using the FileSystemWatcher
.
如何做到这一点?
用户,你的计算机 想看到计算机B硬驾驶名录。 下面是实现这一目标的一些途径:
计算机 采用SMB、NFS或其他一些网络档案系统程序,在B建立遥控档案系统。 之后,你申请A应能够:
利用Java 7 Watch Service在名录上进行档案系统活动,
在 Java6和6之前,对名录的修改日期等进行投票,以了解何时修改或修改。
使用本土节目或图书馆读到inotify(7)
,或视窗等。
如果你能够把B的档案系统排在A上,那么你就必须在B实施和管理某种远程服务,这种服务可以由在A上运行的客户申请解决。 这样做有多种可能的办法。
它取决于你运行的平台,或档案系统是可边远的目录。 如果你在窗户上,仅用指挥网(NET USE)绘制偏远地区的地图,那么你可以由NFS、SSHFS、FTPFS(fuse)或任何其他方面站起来。 Java只是需要安装在档案系统等级上的倍数。
Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...
Check this, List<String> list = new ArrayList<String>(); for (int i = 0; i < 10000; i++) { String value = (""+UUID.randomUUID().getLeastSignificantBits()).substring(3, ...
I am in the middle of solving a problem where I think it s best suited for a decorator and a state pattern. The high level setting is something like a sandwich maker and dispenser, where I have a set ...
I have been trying to execute a MS SQL Server stored procedure via JDBC today and have been unsuccessful thus far. The stored procedure has 1 input and 1 output parameter. With every combination I ...
I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...
If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...
I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....
I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...