|
|
Subject:
Java API to find file/disk block size???
Category: Computers > Programming Asked by: hooji-ga List Price: $52.82 |
Posted:
26 Sep 2003 00:56 PDT
Expires: 26 Oct 2003 00:56 PDT Question ID: 260346 |
Is it possible to find out the block size of a given disk (or some file on that disk) from Java 1.4.2, using just the regular Java APIs? (not using JNI) How? | |
| |
| |
|
|
There is no answer at this time. |
|
Subject:
Re: Java API to find file/disk block size???
From: eadfrith-ga on 28 Sep 2003 12:42 PDT |
Can't be done I'm afraid. The support for retrieving information on the underlying file system in Java is quite poor. Basically you're limited to whatever information the java.io.File class provides, which is precious little. For example, you can't even query how much free space is available on the file system. So, if you really need this information then you're going to have to use JNI. Here's a link to an existing freeware implementation than gives you the information you want, but is limited to Unix platforms: http://www.xenonsoft.demon.co.uk/products/javaunix/ Sorry to be the bearer of bad news. Cheers, Eadfrith |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |