我们不准许对书籍、工具、软件图书馆以及更多的图书馆征求建议的问题。 你可以ed问这个问题,以便用事实和引言回答。
Closed 6 years ago.
Java 7 连续使用监测档案系统的<代码>Watchservice。 Java6是否有回港?
是否有具有类似特征的纯 Java图书馆?
我们不准许对书籍、工具、软件图书馆以及更多的图书馆征求建议的问题。 你可以ed问这个问题,以便用事实和引言回答。
Closed 6 years ago.
Java 7 连续使用监测档案系统的<代码>Watchservice。 Java6是否有回港?
是否有具有类似特征的纯 Java图书馆?
当然是。 阿帕奇·维爱阵确实如此。 可在http://commons.apache.org/vfs/查询。 它是一个能够监测档案的纯java图书馆,它非常容易使用:
FileSystemManager manager = VFS.getManager();
FileObject file= manager.resolveFile("c:/MyFile.txt");
DefaultFileMonitor fm = new DefaultFileMonitor(new MyListener());
fm.setDelay(5000);
fm.addFile(file);
fm.start();
上述法典将监测文件c:MyFile.txt。 如果该目标发生变化,就叫MyListener()。
A pure Java library for this is impossible; you need a native component if you want to avoid polling.
http://wiki.netbeans.org/NativeFileNotifications 提供了一些关于现有本土的土著亚特兰大和各种瓦 Java图书馆的资料。
* A/63/150。 虚拟档案系统,向土著档案系统监察员开火,通知基本档案系统,将其改为民主选举学会。 两年来,Jebrains一直在公布一个公开的源码,该版本应当包含该部件。 该公司与 Java6公司合作。
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 ...