File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Looking for the command that can...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Looking for the command that can...?" Watch "Looking for the command that can...?" New topic
Author

Looking for the command that can...?

Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
Hi dear friends,
I am looking for the java command that can operate on chunk of byte (block) with fix sizes This means that I want operate on hard disk directly.
Thank you so much for your hint and help,
Elahe
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Using JAVA - a language that is operating system independant? Don't think so.
Unless I am completely misunderstanding what you are asking.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
If I like to clear my question I have to say I like to design and implement a basic file system that uses linked list disk block allocation algorithm in order to get idea and concepts and techniques of:
Linked list disk block allocation
Free space management
Directory implementation
Disk block cache
So first I want to know can I use Java and then could you give me some hint that from where I have to start still I don't know how to approch it...
Many thnaks,
Elahe
Dan Cranmer
Greenhorn

Joined: May 24, 2000
Posts: 24
You might want to take a look at the Java source for the File class and the FileSystem class. If you just want to simulate a file system you might be able to get away with using the RandomAccessFile class. Otherwise you will get into some platform specific JNI code.
See:
http://java.sun.com/j2se/1.4/docs/api/java/io/RandomAccessFile.html
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Looking for the command that can...?