code: public void writeInt(final int value, final JBBPByteOrder byteOrder) throws IOException {
      if (byteOrder == JBBPByteOrder.BIG_ENDIAN) {
        this.writeShort(value >>> 16, byteOrder);
        this.writeShort(value, byteOrder);
      } else {
        this.writeShort(value, byteOrder);
        this.writeShort(value >>> 16, byteOrder);
      }
    }
docs: Write an integer value into the output stream.
  
  @param value     a value to be written into the output stream.
  @param byteOrder the byte order of the value bytes to be used for writing.
  @throws IOException it will be thrown for transport errors
  @see JBBPByteOrder#BIG_ENDIAN
  @see JBBPByteOrder#LITTLE_ENDIAN