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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -