• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NX: Formats of "DataInputStream" classes?

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello again,
I am confused about the following statement:


All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream classes.


Does this mean that I have to use DataInputStream and DataOutputStream classes?? How do their formats look like? Isn't it just streams of bytes? I am using RandomAccessFile and have no problem reading & writing database. Could anybody please clarify this?
Kim
 
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sang-Wook Kim:
Hello again,
Does this mean that I have to use DataInputStream and DataOutputStream classes?? How do their formats look like? Isn't it just streams of bytes? I am using RandomAccessFile and have no problem reading & writing database. Could anybody please clarify this?
Kim


Hi Kim, I think they are just giving us a hint on how the format is. It does'nt necessarily put a constraint on us to use only those. As a matter of fact, I think most people use RandomAccessFile and other NIO classes only. Bottomline...it should not be a problem. You are good at what you are doing.
Good Luck.
 
Sang-Wook Kim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx Satish~
 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream classes.

This phrase is essentially saying, albeit in a round-about way, that the numeric
values are stored in the header using the formats of the interfaces implemented
by DataInputStream and DataOutputStream; and, RandomAccessFile implements
the same interfaces.
Thanks,
Javini Javono
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic