FileTimes Screenshot



FileTimes

Java class library to get/set file and directory times: Create/LastModified/LastAccessed. For Windows only. Create time is when the file was first written. Modifiedtime (sometimes called lastModified) is when the file waslast written. Accessed time is when the file was last reador written. Checking its date, looking at its attributes orchecking to see if it exists does not count as reading it. Get/Set Windows File Times Create/LastAccessed/LastModifiedwith a JNI native code class. Java and JNI you include in your own code. You can test with C: CD \com.mindprod.filetimes java com.mindprod.filetimes.FileTimes and ensuring nativefiletimes.dll is on the path, e.g. in thecurrent directory. In JDK 1.5+ the DLL may be in the jar, solong is it has no package path name. See FileTimes.java for the API to use these methods in yourown programs. FileTimes does nothing by itself, other than adebugging test harness to demonstrate the methods. Windows keeps file timestamps accurate to 100 nanosecondswith 10,000 times as much precision as Java's 1 ms. Thismeans if you copy a file in Java, the new file will nothave the exact same timestamp as the old. This packageretrieves and sets timestamps accurate only to themillisecond.


Back to FileTimes Details page

New software of Web Authoring, JavaScript