Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Unix's "stat" equivalent in Java?

Thread view: 
napi - 04 May 2007 11:08 GMT
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
TechBookReport - 04 May 2007 11:34 GMT
> 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/).

Signature

TechBookReport Java http://www.techbookreport.com/JavaIndex.html

napi - 05 May 2007 08:22 GMT
> > Is there any implementation of the UNIX function "stat" or "lstat" in
> > pure Java (not JNI implementation) that mimics the UNIX version
[quoted text clipped - 6 lines]
> --
> 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
Gordon Beaton - 04 May 2007 11:47 GMT
> 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

--


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.