On Wed, 3 Feb 1999, Brad Pepers wrote:
> If I wasn't lazy it should be fairly easy to find somewhere in
> the Java specs that tells you what endian is used for the data
> written out.
Okay, I did a grep on the VMSpec docs and found out:
Section 1.8: The Java Instruction Set
"The number and size of the additional operands is determined by
the opcode. If an additional operand is more than one byte in size,
then it is stored in big-endian order -- high order byte first."
Chapter 2: Class File Format
"A Java class file consists of a stream of 8-bit bytes. All 16-bit
and 32-bit quantities are constructed by reading in two or four
8-bit bytes, respectively. The bytes are joined together in network
(big-endian) order, where the high bytes come first. This format is
supported by the Java java.io.DataInput and java.io.DataOutput
interfaces, and classes such as java.io.DataInputStream and
java.io.DataOutputStream."
Robert.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Robert P Biuk-Aghai, University of Macau, Faculty of Science and Technology
http://hyperg.sftw.umac.mo/robert/ tel: +853-3974365 fax: +853-838314
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Microsoft isn't the answer. Microsoft is the question and the answer is no.