question: private static int readSwappedInteger ( final DataInputStream input ) throws IOException { final int value1 = input . readByte ( ) ; final int value2 = input . readByte ( ) ; final int value3 = input . readByte ( ) ; final int value4 = input . readByte ( ) ; return ( ( value1 & 0xff ) << 0 ) + ( ( value2 & 0xff ) << 8 ) + ( ( value3 & 0xff ) << 16 ) + ( ( value4 & 0xff ) << 24 ) ; }
target:  Reads a "int" value from an InputStream. The value is converted to the opposed endian system while reading.