code: public void print(boolean b) throws IOException {
  	    if (writer != null) {
  	        writer.write(b ? "true" : "false");
  	    } else {
  	        write(b ? "true" : "false");
  	    }
      }
docs: Print a boolean value.  The string produced by <code>{@link
  java.lang.String#valueOf(boolean)}</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 b The <code>boolean</code> to be printed
  @throws IOException