aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes RandomAcessFile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "RandomAcessFile" Watch "RandomAcessFile" New topic
Author

RandomAcessFile

Arsho, Ayan
Ranch Hand

Joined: Nov 14, 2001
Posts: 60
Hi :
Can a RandomAccesFile ever be chained to Readers or Streams. ?
Appreciate your reply
-Thanks
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
No it cannot. It's a unique class that stands on its own.
However, it does implement DataOutput and DataInput, the same interfaces implemented by DataOutputStream and DataInputStream. This lets you treat data-writing and reading methods in a consistent way accross various class types, giving you some flexibility in how you use it.
Rob


Rob
SCJP 1.4
Arsho, Ayan
Ranch Hand

Joined: Nov 14, 2001
Posts: 60
Thanks for the quick reply Rob!!
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205

No problem, glad to help.
Rob
 
wood burning stoves
 
subject: RandomAcessFile