detecting changes : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

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:

http://mindprod.com/jgloss/detectingchanges.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\detectingchanges.html
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.

IP:[65.110.21.43]
Your face IP:[18.117.92.86]
You are visitor number