struct is necessary when you try to parse some file format like ELF, etc…
Is there something like C’s struct in Java?
Or can Java be used to parse ELF/binary format directly in the first place?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunatly there is no decent support to read binary structured data in java.
This example reads image header into a byte array and assembles the required information.