java - Cobol binary file reading -


i have binary file written cobol application. document binary file stating first 4 byes sizeof upcoming record. out of 4 byes, 1st , 2nd bytes binary represcentaion of record length , next 2 byes null values(reserved). input have. how can read java integer. should read first 4 byes or 2 byes reading java integer. confused because in java integer of 4 byes.

is possible read binary writen cobol application in java variables.

you read in using java short, 16-bit integer, or read first 4 bytes integer , shift right 16.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -