Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2011
    Rep Power

    Default Implementing timestamp listener

    how could a listener be implemented that is informed when an XML file has been changed? This listener then should call a function that parses the XML again.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Rep Power

    Default Re: Implementing timestamp listener

    A File changing is at the OS level. If you are using java 7, you can watch for directory changes
    If not, you will need to launch a thread that polls the last modified timestamp periodically, and act accordingly when it changes.

Similar Threads

  1. Replies: 2
    Last Post: 12-11-2011, 11:44 PM
  2. Implementing an event listener?
    By jammas615 in forum Java 2D
    Replies: 3
    Last Post: 07-04-2011, 05:15 PM
  3. XML signature with TimeStamp
    By Alonso in forum New To Java
    Replies: 5
    Last Post: 02-14-2011, 01:36 PM
  4. Timestamp Issue
    By hacktorious in forum Advanced Java
    Replies: 2
    Last Post: 12-19-2010, 07:03 AM
  5. how to compare two timestamp
    By baktha.thalapathy in forum New To Java
    Replies: 1
    Last Post: 06-11-2010, 11:05 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts