my dog learned polymorphism
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

JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird--Data file" Watch "URLyBird--Data file" New topic

URLyBird--Data file

john luo

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?

Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11730

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

Joined: Feb 07, 2006
Posts: 2
thank you, Andrew
i think i will use RandomAccessFile.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: URLyBird--Data file
It's not a secret anymore!