File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Looking for the command that can...?

 
Elahe Shafie
Ranch Hand
Posts: 291
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using JAVA - a language that is operating system independant? Don't think so.
Unless I am completely misunderstanding what you are asking.
 
Elahe Shafie
Ranch Hand
Posts: 291
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic