public static int writeInt ( OutputStream target , int value ) throws IOException { target . write ( value >>> 24 ) ; target . write ( value >>> 16 ) ; target . write ( value >>> 8 ) ; target . write ( value ) ; return Integer . BYTES ; }
Writes the given 32 - bit Integer to the given OutputStream .