aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX:which class should i apply to access db? 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 "NX:which class should i apply to access db?" Watch "NX:which class should i apply to access db?" New topic
Author

NX:which class should i apply to access db?

dx wu
Ranch Hand

Joined: Apr 28, 2002
Posts: 60
quote:
--------------------------------------------
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.
----------------------------------------------
then I must use DataInputStream and DataOutputStream to access db-1x1.db?
and someone can tell me which class you use to access db-1x1.db?
Michael Dreese
Ranch Hand

Joined: Apr 02, 2003
Posts: 45
Originally posted by net dongxiao:
then I must use DataInputStream and DataOutputStream to access db-1x1.db?
and someone can tell me which class you use to access db-1x1.db?

Hi,
I believe there are several ways to do that. The way I do is that I just use DataInputStream and DataOutputStream for file's header, and RandomAccessFile for reading/writing/updating record(s) in the db file. Hope that helps.
Cheers,
Michael
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Or to be totally NIO channels and buffers


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NX:which class should i apply to access db?