Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: Data read requirement

 
Vaishali Paramane
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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

Vaishali
 
John Stone
Ranch Hand
Posts: 332
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jone

your information will help me
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic