detecting changes : Java Glossary


detecting changes
Quick ways to detect if a file has changed are to look at File. lastModified and  File.length(). Record the date and length and see if they have changed. Untouch detects file changes by using those two techniques plus a digest.

To find out just what has changed, sort and compare item by item using merge logic, with the items in an ArrayList, such as you find in the sorted package.

You can also use a tree structure where you timestamp changes as they are made.

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number