java7 nio2 filesystem doubt...

1 view
Skip to first unread message

ragha

unread,
Dec 21, 2008, 11:49:30 PM12/21/08
to "Code For Freedom" Contest Participants
Im in a bit of a situation...
I want to monitor file system for changes (ie, event notification)

My options are to use Jnotify or the new FileSystems class in java7
nio
new jdk seems to be a better choice, but i need help regarding the
filesystem class usage...

can some one post sample code or ref links on how to monitor for
changes??
thx in advance...

Amit k. Saha

unread,
Dec 22, 2008, 12:00:15 AM12/22/08
to CodeFor...@googlegroups.com
Check this: http://openjdk.java.net/projects/nio/presentations/TS-5686.pdf

-Amit

> thx in advance...
> >
>



--
Amit Kumar Saha
http://amitksaha.blogspot.com
http://amitsaha.in.googlepages.com/
Skype: amitkumarsaha

Amit k. Saha

unread,
Dec 22, 2008, 12:07:36 AM12/22/08
to CodeFor...@googlegroups.com
On Mon, Dec 22, 2008 at 10:30 AM, Amit k. Saha <amits...@gmail.com> wrote:
> On Mon, Dec 22, 2008 at 10:19 AM, ragha <ragha_un...@yahoo.com> wrote:
>>
>> Im in a bit of a situation...
>> I want to monitor file system for changes (ie, event notification)
>>
>> My options are to use Jnotify or the new FileSystems class in java7
>> nio
>> new jdk seems to be a better choice, but i need help regarding the
>> filesystem class usage...
>>
>> can some one post sample code or ref links on how to monitor for
>> changes??
> Check this: http://openjdk.java.net/projects/nio/presentations/TS-5686.pdf

Basically, you will have to use OpenJDK 7. More information here at
http://javanio.info/filearea/nioserver/WhatsNewNIO2.pdf (Slide 20).


-Amit

ragha

unread,
Dec 22, 2008, 12:22:45 AM12/22/08
to "Code For Freedom" Contest Participants
Thx for the help...exactly what i needed
Reply all
Reply to author
Forward
0 new messages