aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Can't understand Schema Description of B&S 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 "Can Watch "Can New topic
Author

Can't understand Schema Description of B&S

Steve Taiwan
Ranch Hand

Joined: Jul 01, 2003
Posts: 166
I got the following content
****************
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
****************
And I can't understand what "1 byte numeric, field length in bytes" means.
Could anyone tell me what it means?
Thank you.


Steve Taiwan<br />SCJP 1.2, SCJD 1.4, SCWCD 1.3, SCBCD 1.3, OCP 8i DBA, SCEA
Raj Nagappan
Ranch Hand

Joined: May 26, 2004
Posts: 38


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


It means that there is:
(1) one byte of data which is a number, that tells you how many letters will follow in the field name
(2) the field name itself that occupies the number of bytes in (1) above
(3) another one byte which is a number, but this time tell you how many bytes there in the field storage.

eg. 5flags9 translates to:
(1) 5 bytes to follow in the fieldname
(2) fieldname = "flags", length = 5 (from 1 above)
(3) 9 bytes of data for this field in each record


Raj Nagappan<br />SCJP, SCJD, PhD
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
Good explanation. It should be understood that the 5 and 9 in '5flags9' are the numbers 0x05 and 0x09, rather than 5 and 9 in ASCII, however.

Jules
Steve Taiwan
Ranch Hand

Joined: Jul 01, 2003
Posts: 166
Dear Raj Nagappan

Thank you for the explanation.
I got it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't understand Schema Description of B&S