public JBBPTextWriter Int(final int value) throws IOException {
    ensureValueMode();

    String convertedByExtras = null;
    for (final Extra e : this.extras) {
      convertedByExtras = e.doConvertIntToStr(this, value);
      if (convertedByExtras != null) {
        break;
      }
    }

    if (convertedByExtras == null) {
      final long valueToWrite;
      if (this.byteOrder == JBBPByteOrder.LITTLE_ENDIAN) {
        valueToWrite = JBBPUtils.reverseByteOrder(value, 4);
      } else {
        valueToWrite = value;
      }
      printValueString(JBBPUtils.ensureMinTextLength(JBBPUtils.ulong2str(valueToWrite & 0xFFFFFFFFL, this.radix, CHAR_BUFFER), this.maxCharsRadixForInt, '0', 0));
    } else {
      printValueString(convertedByExtras);
    }
    return this;
  }
public JBBPTextWriter Int ( final int value ) throws IOException { ensureValueMode ( ) ; String convertedByExtras = null ; for ( final Extra e : this . extras ) { convertedByExtras = e . doConvertIntToStr ( this , value ) ; if ( convertedByExtras != null ) { break ; } } if ( convertedByExtras == null ) { final long valueToWrite ; if ( this . byteOrder == JBBPByteOrder . LITTLE_ENDIAN ) { valueToWrite = JBBPUtils . reverseByteOrder ( value , 4 ) ; } else { valueToWrite = value ; } printValueString ( JBBPUtils . ensureMinTextLength ( JBBPUtils . ulong2str ( valueToWrite & 0xFFFFFFFFL , this . radix , CHAR_BUFFER ) , this . maxCharsRadixForInt , '0' , 0 ) ) ; } else { printValueString ( convertedByExtras ) ; } return this ; }
Print integer value

@param value value to be printed
@return the context
@throws IOException it will be thrown for transport error