Output documentation table to a PrintWriter

@param out
553377
public void output(PrintWriter out)
    {
        Map<String, Entry> entries = config.getSortedEntries();
        
        if ( entries.isEmpty() )
        {
            return;
        }

        ColumnPrinter printer = build(entries);

        out.println("Configuration Details");
        printer.print(out);
    }
603003
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        if (!this.isInputField())
            return false;
        if (this.isToolbar())
            return false;
        return this.getScreenFieldView().printData(out, iPrintOptions);
    }
1026709
public void dump(PrintStream output) {
        TreeSet<String> keys = new TreeSet<String>(keySet());
        for (String key : keys) {
            output.println(key + ":" + get(key));
        }
    }
1086273
void dump(java.io.PrintStream out) {
        if (fFTable.length == 0) {
            // There is no table. Fail early for testing purposes.
            throw new NullPointerException();
        }
        out.println("RBBI Data Wrapper dump ...");
        out.println();
        out.println("Forward State Table");
        dumpTable(out, fFTable);
        out.println("Reverse State Table");
        dumpTable(out, fRTable);
        out.println("Forward Safe Points Table");
        dumpTable(out, fSFTable);
        out.println("Reverse Safe Points Table");
        dumpTable(out, fSRTable);

        dumpCharCategories(out);
        out.println("Source Rules: " + fRuleSource);

    }
193591
private void writeObject(ObjectOutputStream out) throws IOException {
        out.defaultWriteObject();
        out.writeInt(severity.getOrdinal());
        out.writeObject(summary);
        out.writeObject(detail);
        out.writeObject(rendered);
    }
392340
private void dumpTable(java.io.PrintStream out, short table[]) {
        if (table == null)   {
            out.println("  -- null -- ");
        } else {
            int n;
            int state;
            StringBuilder header = new StringBuilder(" Row  Acc Look  Tag");
            for (n=0; n<fHeader.fCatCount; n++) {
                header.append(intToString(n, 5));
            }
            out.println(header.toString());
            for (n=0; n<header.length(); n++) {
                out.print("-");
            }
            out.println();
            for (state=0; state< getStateTableNumStates(table); state++) {
                dumpRow(out, table, state);
            }
            out.println();
        }
    }
649954
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        String strFieldName = this.getScreenField().getSFieldParam();
        String strButtonDesc = ((SButtonBox)this.getScreenField()).getButtonDesc();
        if ((strButtonDesc == null)
            && (((SButtonBox)this.getScreenField()).getImageButtonName() != null))
        {
            if (this.getScreenField().getParentScreen() instanceof GridScreen)
            { // These are command buttons such as "Form" or "Detail"
                GridScreen gridScreen = (GridScreen)this.getScreenField().getParentScreen();
                Record record = gridScreen.getMainRecord();
                String strBookmark = DBConstants.BLANK;
                try {
                    strBookmark = record.getHandle(DBConstants.OBJECT_ID_HANDLE).toString();
                } catch (DBException ex)    {
                    ex.printStackTrace();
                }
                if (this.isSingleDataImage())
                	strBookmark = this.getScreenField().getConverter().toString();
                
                out.println("    " + Utility.startTag(strFieldName) + strBookmark + Utility.endTag(strFieldName));
                return true;
            }
            else
                return super.printData(out, iPrintOptions);
        }
        else
            return super.printData(out, iPrintOptions);
    }
837792
protected void stageOutput(final String output) {
        boolean print = getPhaseConfiguration().isVerbose();
        if (print) {
            output(INDENT + INDENT + output);
        }
    }
719746
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        boolean bFieldsFound = false;
        iPrintOptions = this.printStartGridScreenData(out, iPrintOptions);

        Record record = this.getMainRecord();
        if (record == null)
            return bFieldsFound;
        int iNumCols = this.getSFieldCount();

        int iLimit = DEFAULT_LIMIT;
        String strParamLimit = this.getProperty(LIMIT_PARAM);   // Display screen
        if ((strParamLimit != null) && (strParamLimit.length() > 0))
        {
            try   {
                iLimit = Integer.parseInt(strParamLimit);
            } catch (NumberFormatException e) {
                iLimit = DEFAULT_LIMIT;
            }
        }

        int iFieldCount = 0;
        for (int i = 0; i < iNumCols; i++)
        {
            if (!(this.getSField(i) instanceof BasePanel))
                iFieldCount++;
        }
        if (iFieldCount > 0)
        {
            bFieldsFound = true;
            BasePanel scrHeading = this.getReportHeading();
            if (scrHeading != null)
                scrHeading.printData(out, iPrintOptions | HtmlConstants.MAIN_HEADING_SCREEN);
            
            BasePanel scrDetail = this.getReportDetail();

            this.printStartRecordGridData(out, iPrintOptions);
            this.printNavButtonControls(out, iPrintOptions);

            // for entire data
            try {
                boolean bHeadingFootingExists = this.isAnyHeadingFooting();

                record = this.getNextRecord(out, iPrintOptions, true, bHeadingFootingExists);

                while (record != null)
                {
                    this.printStartRecordData(record, out, iPrintOptions);

                    if (bHeadingFootingExists)
                        this.printHeadingFootingData(out, iPrintOptions | HtmlConstants.HEADING_SCREEN | HtmlConstants.DETAIL_SCREEN);

                    bFieldsFound = super.printData(out, (iPrintOptions & (~HtmlConstants.HTML_ADD_DESC_COLUMN)) | HtmlConstants.MAIN_SCREEN); // Don't add description

                    if (scrDetail != null)
                        scrDetail.printData(out, iPrintOptions | HtmlConstants.DETAIL_SCREEN);

                    Record recordNext = this.getNextRecord(out, iPrintOptions, false, bHeadingFootingExists);

                    this.printEndRecordData(record, out, iPrintOptions);
                    
                    record = recordNext;

                    if (--iLimit == 0)
                        break;  // Max rows displayed
                }
            } catch (DBException ex)    {
                ex.printStackTrace();
            }

            this.printEndRecordGridData(out, iPrintOptions);

            BasePanel scrFooting = this.getReportFooting();
            if (scrFooting != null)
                scrFooting.printData(out, iPrintOptions | HtmlConstants.MAIN_FOOTING_SCREEN);
        }

        this.printEndGridScreenData(out, iPrintOptions);
        return bFieldsFound;
    }
954800
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        this.addHiddenParam(out, TrxMessageHeader.LOG_TRX_ID, this.getProperty(TrxMessageHeader.LOG_TRX_ID));
        return super.printData(out, iPrintOptions);   // Don't print
    }
171978
public void printDetails(final PrintStream out) {
    out.print(this + ", entries = [");
    for(int i = 0; i < entries.length; i++) {
      if (entries[i] != null) {
        LinkedElement e = entries[i];
        out.print("\n  " + i + ": " + e);
        for(e = e.getNext(); e != null; e = e.getNext()) {
          out.print(" -> " + e);
        }
      }
    }
    out.println("\n]");
  }
254438
def write(self, data_in, data_out, *args, **kwargs):
        
        self._get_tables(data_in)

        self.file_emulation = False
        outputs = []
        self._prepare_outputs(data_out, outputs)
        output = outputs[0]
        for i in xrange(len(self.tables)):
            table = self.tables[i]

            self._write_table(output, table)

        if data_out != output and hasattr(data_out, 'write'):
            output.Flush()
            output.ReOpen('read')
            file_size = output.GetSize()
            buff = bytearray(file_size)
            output.ReadBuffer(buff, file_size)
            data_out.write(buff)

        if self.file_emulation:
            filename = output.GetName()
            output.Close()
532928
public void write(PrintWriter out, boolean includeDoc) {
        // getValue() will update the timestamp (if relevant)
        T localValue = getValue();
        if (includeDoc) {
            out.println();
            Long lastUpdate = getLastUpdated();
            if (hasDoc() || lastUpdate != null) {
                out.print("# ");
                if (hasDoc()) {
                    out.print(makePropertiesSafe(getDoc(), null));
                }
                if (lastUpdate != null) {
                    out.print(" (last update: " + lastUpdate + ")");
                }
                out.println();
            }
        }
        out.println(toString());
    }
761145
public void dumpTo(AreaTree tree, PrintWriter out)
    {
        if (produceHeader)
        {
            out.println("<!DOCTYPE html>");
            out.println("<html>");
            out.println("<head>");
            out.println("<title>" + tree.getRoot().getPage().getTitle() + "</title>");
            out.println("<meta charset=\"utf-8\">");
            out.println("<meta name=\"generator\" content=\"FITLayout - area tree dump\">");
            out.println("</head>");
            out.println("<body>");
        }
        recursiveDumpArea(tree.getRoot(), 1, out);
        if (produceHeader)
        {
            out.println("</body>");
            out.println("</html>");
        }
    }
1280715
private static void writeStringMap(SymbolTable map, ObjectOutput out)
      throws IOException {
    out.writeInt(map.size());
    for (ObjectIntCursor<String> cursor : map) {
      out.writeUTF(cursor.key);
      out.writeInt(cursor.value);
    }
  }
1101647
public void prepareUpdateStep1bOutput(JspWriter out) throws IOException {

        m_oldLoggingDBOffset = m_newLoggingDBOffset;
        m_newLoggingDBOffset = m_dbUpdateThread.getLoggingThread().getMessages().size();
        if (isInitialized()) {
            for (int i = m_oldLoggingDBOffset; i < m_newLoggingDBOffset; i++) {
                String str = m_dbUpdateThread.getLoggingThread().getMessages().get(i).toString();
                str = CmsEncoder.escapeWBlanks(str, CmsEncoder.ENCODING_UTF_8);
                out.println("output[" + (i - m_oldLoggingDBOffset) + "] = \"" + str + "\";");
            }
        } else {
            out.println("output[0] = 'ERROR';");
        }

        boolean threadFinished = m_dbUpdateThread.isFinished();
        boolean allWritten = m_oldLoggingDBOffset >= m_dbUpdateThread.getLoggingThread().getMessages().size();

        out.println("function initThread() {");
        if (isInitialized()) {
            out.print("send();");
            if (threadFinished && allWritten) {
                out.println("setTimeout('top.display.finish()', 1000);");
            } else {
                int timeout = 5000;
                if (getUpdateDBThread().getLoggingThread().getMessages().size() < 20) {
                    timeout = 2000;
                }
                out.println("setTimeout('location.reload()', " + timeout + ");");
            }
        }
        out.println("}");
    }
584440
@Override
    public void writeTo(CodedOutputStream output) throws IOException {
        MapEntryLite.writeTo(output, metadata, key, value);
    }