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
Post a Comment