If you just write to the file with a Writer or OutputStream, the timestamp will be updated. (Make sure you close() the stream or writer when you're done.)
If you just want to change the timestamp without writing to the file, java.io.File has setLastModified.
http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html