Re: readInt() & byte order

2001-03-22 Thread Matthias Pfisterer
endian will be 0111 > > 1000 => 32520 > > > > -Ashish > > > > - Original Message - > > From: "Joaquin Rapela" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, March 21, 2001 9:56 AM > >

Re: readInt() & byte order

2001-03-21 Thread Ashish
0001000 => 32520 > > > > -Ashish > > > > ----- Original Message - > > From: "Joaquin Rapela" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, March 21, 2001 9:56 AM > > Subject: readInt() & byte ord

Re: readInt() & byte order

2001-03-21 Thread Matthias Pfisterer
t; To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 21, 2001 9:56 AM > Subject: readInt() & byte order > > > Hello, > > > > I have a binary file containing short integers. I wrote a C program to > read > > the file and it works as expected. I wrote a java

Re: readInt() & byte order

2001-03-21 Thread Ashish
Rapela" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 21, 2001 9:56 AM Subject: readInt() & byte order > Hello, > > I have a binary file containing short integers. I wrote a C program to read > the file and it works as expected. I wrote a java progr

readInt() & byte order

2001-03-21 Thread Joaquin Rapela
Hello, I have a binary file containing short integers. I wrote a C program to read the file and it works as expected. I wrote a java program to read the file using a DataInputStream and its readInt() method and it is reading the short integers in inverted order Instead of a 2175 (1111) I