public static void writeUnpaddedInteger(Writer out,long value) throws IOException {
  int intValue=(int)value;
  if (intValue == value) {
    writeUnpaddedInteger(out,intValue);
  }
 else {
    out.write(Long.toString(value));
  }
}

public static void writeUnpaddedInteger ( Writer out , long value ) throws IOException { int intValue = ( int ) value ; if ( intValue == value ) { writeUnpaddedInteger ( out , intValue ) ; } else { out . write ( Long . toString ( value ) ) ; } }
converts an integer to a string , and writes it to the given writer . < p > this method is optimized for converting small values to strings .
