Solved

Endians

Posted on 2001-09-12
6
293 Views
Last Modified: 2008-03-04
Through java how can i find out whether my system is BigEndian or littleEndian?
                       
0
Comment
Question by:kapil009
6 Comments
 

Expert Comment

by:lawpan
ID: 6476319
What do you mean? What is BigEndian and LittleEndian?
Some OS system?
0
 

Author Comment

by:kapil009
ID: 6476335
Everything in Java binary format files is stored big-endian, MSB(Most Significant Byte) first. . This means if you use only Java, all files are done the same way on all platforms Mac, PC, Solaris, etc. The problem comes when you must exchange data files with some program not written in Java that uses little-endian order, most commonly C on the PC. Some platforms use big-endian order internally (Mac, IBM 390); some use little-endian order (Intel).
0
 

Author Comment

by:kapil009
ID: 6476384
please go through the down url to know about endians.

http://whatis.techtarget.com/definition/0,,sid9_gci211659,00.html
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 7

Accepted Solution

by:
Igor Bazarny earned 100 total points
ID: 6476497
Hi,

I don't know whether it's possible in pure java, but it should be possible using native methods, just write some bytes into byte array from java and convert them to short or int at c side. If bytes are different, you will see the big/little endian difference.

Regards,
Igor Bazarny,
Brainbench MVP for Java 1
www.brainbench.com

0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7020177
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101, Netminder, Mindphaser or I will return to finalize these as soon as possible if after 7 days no response by the Asker.  EXPERTS-->  please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.11531878.html
http://www.experts-exchange.com/questions/Q.20143798.html
http://www.experts-exchange.com/questions/Q.20153601.html
http://www.experts-exchange.com/questions/Q.20156894.html
http://www.experts-exchange.com/questions/Q.20163587.html
http://www.experts-exchange.com/questions/Q.20176408.html
http://www.experts-exchange.com/questions/Q.20176440.html
http://www.experts-exchange.com/questions/Q.20176441.html
http://www.experts-exchange.com/questions/Q.20177690.html
http://www.experts-exchange.com/questions/Q.20177691.html
http://www.experts-exchange.com/questions/Q.20177694.html
http://www.experts-exchange.com/questions/Q.20177695.html
http://www.experts-exchange.com/questions/Q.20177682.html
http://www.experts-exchange.com/questions/Q.20178349.html
http://www.experts-exchange.com/questions/Q.20178788.html
http://www.experts-exchange.com/questions/Q.20178790.html
http://www.experts-exchange.com/questions/Q.20178930.html
http://www.experts-exchange.com/questions/Q.20181832.html
http://www.experts-exchange.com/questions/Q.20182527.html
http://www.experts-exchange.com/questions/Q.20132139.html
http://www.experts-exchange.com/questions/Q.20297508.html



*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
------> POINTS FOR EXPERTS awaiting comments are listed in the links below
http://www.experts-exchange.com/commspt/Q.20277028.html (Part 1)
http://www.experts-exchange.com/jsp/qShow.jsp?ta=commspt&qid=20295853 (Part 2)
 
Moderators will finalize this question if in @7 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
 
Thanks everyone.
Moondancer
Moderator @ Experts Exchange
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7020179
21 questions remain open today, some date back to the year 2000.  I will close those I can today, and
request that Asker attend to the rest as quickly as possible.

Moondancer - EE Moderator
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now