[5635] in java-interest
How to swaps high and low bytes of a two byte short under Java?
daemon@ATHENA.MIT.EDU (Xing.Jing@cs.cmu.edu)
Tue Feb 20 20:15:37 1996
Date: Tue, 20 Feb 1996 18:41:19 -0500 (EST)
From: Xing.Jing@cs.cmu.edu
To: Outbound News <outnews+netnews.comp.lang.java@andrew.cmu.edu>,
java-interest@java.sun.com
Hi,
Does anybody know how to swaps high and low bytes of a two byte short
under Java? My JAVA code needs to read a data file stored in a two byte
short, but its byte order is different with that of java "readShort()".
Any suggestion would be great appreciate.
Thanks,
Xing
xjing@cs.cmu.edu
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com