give some example on writing out the "hot folder"

J

James

Hi, I will like have function in my application that scan to particular
folder so that when that is new file copy in, it will able to detect it and
perform soem process. Anyone can give some example(in JAVA code) for me?
Thanks.
I think it may related to multithread or some kind of "folder listener"
 
R

Roedy Green

Hi, I will like have function in my application that scan to particular
folder so that when that is new file copy in, it will able to detect it and
perform soem process. Anyone can give some example(in JAVA code) for me?

you want to look at File.list and filters. See
http://mindprod.com/fillter/file.html and
http://mindprod.com/jgloss/filter.html

You want a periodic process that does this every N seconds. Look at
either of the two Timer classes.

Unfortunately, there is no platform independent way to have the OS
tell you when to scan because the dir has changed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top