Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Byte swapping routines for java



Hi,
Actually in my application, java is communicating with C code through JNI-java native interface.
I am getting a byte array from C code that i am further parsing in my java code.
 
In this situation i was facing byte swaps. So need to get the data into correct format.
Rohit

 
On 3/13/06, Sean Montgomery <email@hidden> wrote:

On Mar 13, 2006, at 3:37 AM, rohit dhamija wrote:

> Hi all,
>
> Using JBuilder 2005 jdk 1.5 (latest one) and  need to use the byte
> swapping routines in java ( CFByteOrder.h) Is there any java
> implementation of same provided ?
>
> Thanks ,--
> Rohit Dhamija(M) 9818446545

Hi Rohit,

Just curious - what do you need to byteswap?  Shouldn't have to do
that if you're using an ObjectInputStream.

Google for "java byte swapping" or something like that.   I didn't
immediately notice any open source projects, but there's javadocs for
a number of java classes that do this sort of thing, to give you some
ideas on how others are doing it.  Shouldn't be that hard.

Sean




--
Rohit Dhamija(M) 9818446545
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Byte swapping routines for java (From: "rohit dhamija" <email@hidden>)
 >Re: Byte swapping routines for java (From: Sean Montgomery <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.