• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • 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
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic