code: 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;
      }
docs: Writes the given 32-bit Integer to the given OutputStream.
  
  @param target The OutputStream to write to.
  @param value  The value to write.
  @return The number of bytes written.
  @throws IOException If an exception got thrown.