This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird--Data file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird--Data file" Watch "URLyBird--Data file" New topic
Author

URLyBird--Data file

john luo
Greenhorn

Joined: Feb 07, 2006
Posts: 2
Hi all,
About Data file Format,
Comments in assignment say:
-------------------------------------------------------------------------
"All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream classes."
-------------------------------------------------------------------------

Does it mean I must use DataInputStream/DataOutputStream to read/write the Data file? Can I use RandomAccessFile, or others, to access Data file?

Thanks
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Hi John,

Welcome to JavaRanch and this forum.

All the instructions are telling you is the format of the data. The instructions do not specify what classes you must use.

So check what DataInputStream/DataOutputStream and RandomAccessFile implement - if you can work back to a common denominator then you can use RandomAccessFile.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
john luo
Greenhorn

Joined: Feb 07, 2006
Posts: 2
thank you, Andrew
i think i will use RandomAccessFile.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLyBird--Data file
 
Similar Threads
How to Change the File Name for Each Uploaded Files to the Socket Server?
Should we always use RandomAccessFile
RAF || DIS
[NX]How to design the Server or accessing mode
DataOutputStream