File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: Data read  requirement 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 "B&S: Data read  requirement" Watch "B&S: Data read  requirement" New topic

B&S: Data read requirement

Vaishali Paramane
Ranch Hand

Joined: Mar 05, 2007
Posts: 107
My requirment say that

" All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream classes. All text values, and all fields (which are text only), contain only 8 bit characters, null terminated if less than the maximum length for the field. The character encoding is 8 bit US ASCII. "

I didnot get it. Is it means that reading file is using DataInputStream and DataOutputStream.
or can I use it RandomAccess for file reading?

Thanks for helping


Preparing for SCWCD
John Stone
Ranch Hand

Joined: May 04, 2007
Posts: 332
Yes you can. Check the javadoc and you'll find, that RAF is following same contract as DataInput*, because both are implements DataInput/DataOutput interfaces.
Vaishali Paramane
Ranch Hand

Joined: Mar 05, 2007
Posts: 107
Thanks Jone

your information will help me
I agree. Here's the link:
subject: B&S: Data read requirement
It's not a secret anymore!