Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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: 106
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: 106
Thanks Jone

your information will help me
subject: B&S: Data read requirement
Similar Threads
Reading .db file
How to read MAGIC for db-2x2.db
NX:which class should i apply to access db?
.db file format problem, help please!!!
NX: Null terminated