Java read unsigned int, store, and write it back
问题 I need to read an unsigned int from a quicktime file, and write it back to another quicktime file. Currently I read the unsigned int into a Long but while writing it back I never managed to write the exact number back in 4 bytes as unsigned int. The long has the correct value that I need to write back. (eg 3289763894 or 370500) I am unable to even read the write a number smaller then Integer.MAX_VALUE (eg 2997). I am using the following methods to write the value back public void writeUInt32