This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes SCJD Project - UrLyBird Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "SCJD Project - UrLyBird" Watch "SCJD Project - UrLyBird" New topic

SCJD Project - UrLyBird

Victor Itulua

Joined: Jul 11, 2007
Posts: 1
Hello Guys;
Below is a description of my data file format:

Data file Format
The format of data in the database file is as follows:
Start of file
4 byte numeric, magic cookie value. Identifies this as a data file
2 byte numeric, number of fields in each record
Schema description section.
Repeated for each field in a record:
1 byte numeric, length in bytes of field name
n bytes (defined by previous entry), field name
1 byte numeric, field length in bytes
end of repeating block
Data section.
Repeat to end of file:
1 byte flag. 00 implies valid record, 0xFF implies deleted record
Record containing fields in order specified in schema section, no separators between fields, each field fixed length at maximum specified in schema information
End of file
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.

1. I am having a hard time understanding this file.
2. Is 8 bit US ASCII equivalent to UTF-8.
3. "All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream classes" - How is this different from UTF-8, and 8 bit US ASCII.
4. What is the best and efficient way to process this file.

I will highly appreciate all contributions / suggestions to enable me pursue the SCJD certification.

John Stone
Ranch Hand

Joined: May 04, 2007
Posts: 332
take a look at
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: SCJD Project - UrLyBird
It's not a secret anymore!