• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Dev Exam: Data conversion tool

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As part of the exam, there is a data conversion tool that reads the flat ASCII data file and creates a binary file for use by suncertify.db.Data class.
Does anyone know what this binary file should look like?
In my understanding it is still text file just with extra information ( feild names, record lengths, etc. )
thanks in advance for your help
Roman.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The database binary file will have 2 components, one metadata and rest records. The metadata will be in binary format as U will be using writeUTF and writeInt methods (look at 2nd Data constructer).
Rao

Originally posted by romagol:
As part of the exam, there is a data conversion tool that reads the flat ASCII data file and creates a binary file for use by suncertify.db.Data class.
Does anyone know what this binary file should look like?
In my understanding it is still text file just with extra information ( feild names, record lengths, etc. )
thanks in advance for your help
Roman.


 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The binary should store the text in byte form in a way that is accessible to the Data.class. Use the Data.class to build the binary.

 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic