db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Segel <mse...@segel.com>
Subject Re: Derby and portability
Date Thu, 17 Nov 2005 06:41:17 GMT
On Wednesday 16 November 2005 23:27, Jean T. Anderson wrote:
>
> > When you output numeric values to a file, what is its raw representation?
> > Is an int an int or the byte code representation of the int?
>
> I'm going to have to call on the Java and Derby internals experts to
> answer how values get physically stored in the files that make up a
> Derby database.
>
Actually I found the answer...

Assuming that you're using something like a DataOutputStream(), using the 
writeInt method, you're always going to write high byte first.

Which would explain why its portable.

-- 
Michael Segel
Principal 
MSCC

Mime
View raw message