This message is directed mostly at Frank, but I included the JPP mailing
list in case other JPP Developers want to comment.
I've been thinking some more about a binary format for the exchange of
features, and I have been taking a look at the API for Java's
DataInputStream class and DataOutputStream class. They contain methods that
can read and write primitive Java datatypes. They can even read and write
String objects as seqences of Unicode character values with a character
count. At first glance it looked like this was everything we needed to
create a parser and writer for a binary feature exchance format.
However, I'm concerned about how interoperability with other programming
languages of a binary file written with these Java classes. For example, if
you create a file with a computer that has a 64-bit microprocessor does the
writeInt() method write an integer to the file using 4 bytes or 8 bytes?
(The API documentation says it only uses 4 bytes.) I also think we would
want to stay away from the writeUTF() and readUTF() methods, since it sounds
like they write a funky character encoding that other programming languages
might have trouble with. I think we'll want to write our own character
counter byte and the individual unicode character values with writeChar() or
writeChars() method instead.
Do you guys have any comments on this?
We don't need to have file format that works with other programming
languages for my immediate purposes, but it would be good if we could
support that quality in the binary feature exchange format.
Landon
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel