...
This compliant solution assumes that the values read are 32-bit unsigned integers. It reads an unsigned integer value into a long variable using the readInt() method. The readInt() method assumes signed values and returns a signed Java int; the return value is converted to a long with sign extension. The code uses an & operation to mask off the upper 32-bits of the long; this produces a value in the range of a 32-bit unsigned integer, as intended. The mask size should be chosen to match the size of the unsigned integer values being read.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b03bfc86a9e07134-887cef5a-43ab47ca-b102a515-d25bf5c01023571032516e42"><ac:plain-text-body><![CDATA[ | [[API 2006 | AA. Bibliography#API 06]] | Class DataInputStream: method | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="bf593abb62a948bb-9e87383c-40a24609-a557b9ac-a8cf8f09e27bf4e7749559dc"><ac:plain-text-body><![CDATA[ | [[Harold 1997 | AA. Bibliography#Harold 97]] | Chapter 2: Primitive Data Types, Cross Platform Issues, Unsigned Integers | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="60205c14ded1faf6-9b9bae3d-4b8d440f-ac818152-8aaaf13fbf7b878f05fffd7f"><ac:plain-text-body><![CDATA[ | [[Hitchens 2002 | AA. Bibliography#Hitchens 02]] | 2.4.5 Accessing Unsigned Data | ]]></ac:plain-text-body></ac:structured-macro> |
...