Unix's "stat" equivalent in Java?

Discussion in 'Java' started by napi, May 4, 2007.

  1. napi

    napi Guest

    Is there any implementation of the UNIX function "stat" or "lstat" in
    pure Java (not JNI implementation) that mimics the UNIX version
    closely? Would appreciate any pointers on it. Thanks.

    Napi
    napi, May 4, 2007
    #1
    1. Advertising

  2. TechBookReport, May 4, 2007
    #2
    1. Advertising

  3. On 4 May 2007 03:08:17 -0700, napi wrote:
    > Is there any implementation of the UNIX function "stat" or "lstat"
    > in pure Java (not JNI implementation) that mimics the UNIX version
    > closely?


    How close is closely?

    The File class contains methods to get much of the information
    reported by stat.

    /gordon

    --
    Gordon Beaton, May 4, 2007
    #3
  4. napi

    napi Guest

    On May 4, 6:34 pm, TechBookReport <> wrote:
    > napi wrote:
    > > Is there any implementation of the UNIX function "stat" or "lstat" in
    > > pure Java (not JNI implementation) that mimics the UNIX version
    > > closely? Would appreciate any pointers on it. Thanks.

    >
    > > Napi

    >
    > Have you looked at Marc Rochkind's JTux? (http://basepath.com/aup/jtux/).
    >
    > --
    > TechBookReport Javahttp://www.techbookreport.com/JavaIndex.html


    I believe JTux is based on JNI. I'm interested in the 100% pure java
    version.
    Is there any? Cheers.

    Napi
    napi, May 5, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steven T. Hatton
    Replies:
    3
    Views:
    9,706
    Pete Becker
    Jun 2, 2005
  2. Patrick Useldinger

    os.stat('<filename>')[stat.ST_INO] on Windows

    Patrick Useldinger, Feb 27, 2005, in forum: Python
    Replies:
    6
    Views:
    1,172
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Mar 3, 2005
  3. Magesh
    Replies:
    3
    Views:
    444
    Gordon Burditt
    Oct 5, 2007
  4. Rolf Krüger
    Replies:
    2
    Views:
    614
    Ian Collins
    Mar 12, 2008
  5. ruck
    Replies:
    10
    Views:
    1,273
Loading...

Share This Page