Results 1 to 3 of 3
  1. #1
    sardare is offline Member
    Join Date
    Jun 2008
    Posts
    17
    Rep Power
    0

    Default java java.nio.FloatBuffer

    Hi,
    I am using FloatBuffer to write some data to a memory mapped file however for some reasons it is not updating the timestamps of the binary files on disk whenever I write. They always have the same time stamp when they were first created.

    ANyone familiar with this and knows how to have them upadte timestamp whenever they get updated?

    thanks,
    Sam
    Last edited by sardare; 04-24-2009 at 11:34 PM. Reason: dsd

  2. #2
    neilcoffey is offline Senior Member
    Join Date
    Nov 2008
    Posts
    286
    Rep Power
    6

    Default

    Have you tried File.setLastModified() ...?

    Generally, I think mapping doesn't alter the metadata -- that can actualy be performance advantage over normal file access.

  3. #3
    sardare is offline Member
    Join Date
    Jun 2008
    Posts
    17
    Rep Power
    0

    Default

    Quote Originally Posted by neilcoffey View Post
    Have you tried File.setLastModified() ...?

    Generally, I think mapping doesn't alter the metadata -- that can actualy be performance advantage over normal file access.
    Great suggestion. I can do that in my close() function after I have done all the mappings.

    thanks,

    Sam

Similar Threads

  1. Replies: 3
    Last Post: 09-07-2009, 02:28 PM
  2. Replies: 3
    Last Post: 03-26-2009, 11:31 PM
  3. Replies: 3
    Last Post: 07-23-2008, 09:07 AM
  4. Replies: 7
    Last Post: 07-22-2008, 06:54 PM
  5. Java experts needed- 30 minute online Java projects
    By michelle in forum Jobs Offered
    Replies: 0
    Last Post: 03-06-2008, 12:47 AM

Posting Permissions

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