Prints the contents of a Cursor's current row to a StringBuilder.

@param cursor the cursor to print
@param sb the StringBuilder to print to
483056
public static void dumpCurrentRow(Cursor cursor, StringBuilder sb) {
        String[] cols = cursor.getColumnNames();
        sb.append("" + cursor.getPosition() + " {\n");
        int length = cols.length;
        for (int i = 0; i < length; i++) {
            String value;
            try {
                value = cursor.getString(i);
            } catch (SQLiteException e) {
                // assume that if the getString threw this exception then the column is not
                // representable by a string, e.g. it is a BLOB.
                value = "<unprintable>";
            }
            sb.append("   " + cols[i] + '=' + value + "\n");
        }
        sb.append("}\n");
    }
283502
public void print(boolean b) throws IOException
  {
    String value = Boolean.toString(b);
    this.output.write(value.getBytes(), 0, value.length());    
  }
1192128
StringBuilder printLine(StringBuilder sb ) {
      if( _pid== NO_PARENT) return sb.append("[root]");
      DecidedNode parent = _tree.decided(_pid);
      parent.printLine(sb).append(" to ");
      return parent.printChild(sb,_nid);
    }
668138
@Override
    public void log(String msg) {
        verifySystemOut();
        PrintStream printStream = out;
        try {
            if (userInputActive) {
                erasePrompt(printStream);
            }
            if (msg.endsWith(LINE_SEPARATOR)) {
                printStream.print(msg);
            } else {
                printStream.println(msg);
            }
            cursorMove = 0;
        } finally {
            printStream.flush();
            postPrintMessage();
        }
    }
321522
synchronized void printBuffer() throws IOException { // TODO: is synchronized really needed here?
	int len = sb.length();
	if (len > 0) {
	    char[] chars = new char[len];
	    sb.getChars(0, len, chars, 0);
	    sb.setLength(0);
	    super.write(chars, 0, chars.length);
	}
    }
783177
public void toShortString(StringBuilder sb) {
        sb.append("IV2 INITITATE_TASK (FROM ");
        sb.append(CoreUtils.hsIdToString(getInitiatorHSId()));
        sb.append(" TO ");
        sb.append(CoreUtils.hsIdToString(getCoordinatorHSId()));
        sb.append(") FOR TXN ").append(TxnEgo.txnIdToString(m_txnId));
        sb.append(" UNIQUE ID ").append(m_uniqueId).append(" (").append(UniqueIdGenerator.toString(m_uniqueId));
        sb.append(")").append("\n");
        sb.append(") TRUNC HANDLE ");
        sb.append(TxnEgo.txnIdToString(getTruncationHandle())).append("\n");
        sb.append("SP HANDLE: ").append(TxnEgo.txnIdToString(getSpHandle())).append("\n");
        sb.append("CLIENT INTERFACE HANDLE: ").append(m_clientInterfaceHandle);
        sb.append("\n");
        sb.append("CONNECTION ID: ").append(m_connectionId).append("\n");
        if (m_isReadOnly)
            sb.append("  READ, ");
        else
            sb.append("  WRITE, ");
        if (m_isSinglePartition)
            sb.append("SINGLE PARTITION, ");
        else
        if (getNPartCount() != 0)
            sb.append("N PARTITION (").append(m_nPartitions).append("), ");
        else
            sb.append("MULTI PARTITION, ");
        if (isForReplay())
            sb.append("FOR REPLAY, ");
        else
            sb.append("NOT REPLAY, ");
        sb.append("COORD ");
        sb.append(CoreUtils.hsIdToString(getCoordinatorHSId()));
    }
1260117
public void print(String separator, String terminator) {
    for (int i = 0; i < maxColumnLength.size(); i++) {
      maxColumnLength.set(i, (((maxColumnLength.get(i) / TAB_SIZE) + 1) * TAB_SIZE));
    }

    for (int r = 0; r < rows.size(); r++) {
      String[] s = rows.get(r);

      for (int i = 0; i < s.length; i++) {
        out.print(s[i]);

        if (i < s.length - 1) {
          for (int l = (s[i] == null ? 0 : s[i].length()); l < maxColumnLength.get(i); l++) {
            out.print(' ');
          }
        }
      }
      if (separator != null && r < rows.size() - 1) { out.println(separator); } else if (terminator != null
          && r == rows.size() - 1) { out.println(terminator); } else { out.println(); }
    }
  }
435587
public static void printTrace(String str) {
        String  trace = System.getenv("ApiTrace");
        if (trace!=null) {
            if (trace.equals("true")) {
                System.out.println(str);
            }
        }

    }
84879
final public void println(String s)
  {
    if (s == null)
      write(_nullChars, 0, _nullChars.length);
    else
      write(s, 0, s.length());

    println();
  }
807992
public void println(boolean b) throws IOException
  {
    String value = Boolean.toString(b);
    this.output.write(value.getBytes(), 0, value.length());
    this.output.write(CRLF, 0, 2);
  }
263428
public void writeScript(AbstractRenderAppender sb)
    {
        assert(sb != null) : "The paramter 'sb' must not be null;";
        if (_writeScript)
            return;

        _writeScript = true;
        IScriptReporter sr = getParentScriptReporter();
        if (sr != null) {
            sr.writeScript(sb);
            return;
        }

        writeBeforeBlocks(sb);
        writeFrameworkScript(sb);
        writeAfterBlocks(sb);
    }
949114
public void println(final String str) throws IOException {
        this.writer.print(str);
        this.writer.print("\r\n");
        this.writer.flush();
    }
696853
public void printDataStartForm(PrintWriter out, int iPrintOptions)
    {
        if ((iPrintOptions & HtmlConstants.DETAIL_SCREEN) != 0)
            out.println("<tr>\n<td colspan=\"20\">");
        out.println("<table border=\"0\" cellspacing=\"10\">\n<tr>");
    }
1329844
@Override
    public void print(
        ChronoDisplay context,
        Appendable buffer,
        AttributeQuery attributes
    ) throws IOException, ChronoException {

        NumberSystem numsys = getNumberSystem(attributes);
        TextWidth width = attributes.get(Attributes.TEXT_WIDTH, TextWidth.NARROW);
        int minDigits;
        switch (width) {
            case NARROW:
                minDigits = 1;
                break;
            case SHORT:
                minDigits = 2;
                break;
            case ABBREVIATED:
                minDigits = 3;
                break;
            default:
                minDigits = 4;
        }
        char zeroChar = (
            attributes.contains(Attributes.ZERO_DIGIT)
                ? attributes.get(Attributes.ZERO_DIGIT).charValue()
                : (numsys.isDecimal() ? numsys.getDigits().charAt(0) : '0'));
        this.print(context, buffer, attributes, numsys, zeroChar, minDigits, 10);

    }
946294
public void printStackTrace(java.io.PrintWriter s) {

        if (s == null) {
            s = new java.io.PrintWriter(System.err, true);
        }

        try {
            String locInfo = getLocationAsString();

            if (null != locInfo) {
                s.println(locInfo);
            }

            super.printStackTrace(s);
        } catch (Throwable e) {}
    }
850927
public void show(StringBuffer sb) {
    int start;
    start = span.getStart();
    if (!type.equals(ParserME.TOK_NODE)) {
      sb.append("(");
      sb.append(type +" ");
      //System.out.print(label+" ");
      //System.out.print(head+" ");
      //System.out.print(df.format(prob)+" ");
    }
    for (Iterator i = parts.iterator(); i.hasNext();) {
      Parse c = (Parse) i.next();
      Span s = c.span;
      if (start < s.getStart()) {
        //System.out.println("pre "+start+" "+s.getStart());
        sb.append(text.substring(start, s.getStart()));
      }
      c.show(sb);
      start = s.getEnd();
    }
    sb.append(text.substring(start, span.getEnd()));
    if (!type.equals(ParserME.TOK_NODE)) {
      sb.append(")");
    }
  }
1225247
public static StringBuilder appendKeyDqValue(final StringBuilder sb, final Entry<String, String> entry) {
        return appendKeyDqValue(sb, entry.getKey(), entry.getValue());
    }