code: public void print(int i) throws IOException {
  	    if (writer != null) {
  	        writer.write(String.valueOf(i));
  	    } else {
  	        write(String.valueOf(i));
  	    }
      }
docs: Print an integer.  The string produced by <code>{@link
  java.lang.String#valueOf(int)}</code> is translated into bytes according
  to the platform's default character encoding, and these bytes are
  written in exactly the manner of the <code>{@link #write(int)}</code>
  method.
  
  @param i The <code>int</code> to be printed
  @throws IOException