org.opends.server.util.table
Class CSVTablePrinter

java.lang.Object
  extended by org.opends.server.util.table.TablePrinter
      extended by org.opends.server.util.table.CSVTablePrinter

public final class CSVTablePrinter
extends TablePrinter

An interface for creating a CSV formatted table.


Constructor Summary
CSVTablePrinter(java.io.OutputStream stream)
          Creates a new CSV table printer for the specified output stream.
CSVTablePrinter(java.io.Writer writer)
          Creates a new CSV table printer for the specified writer.
 
Method Summary
protected  TableSerializer getSerializer()
          Creates a new table serializer based on the configuration of this table printer.
 void setDisplayHeadings(boolean displayHeadings)
          Specify whether or not table headings should be displayed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVTablePrinter

public CSVTablePrinter(java.io.OutputStream stream)
Creates a new CSV table printer for the specified output stream. Headings will not be displayed by default.

Parameters:
stream - The stream to output tables to.

CSVTablePrinter

public CSVTablePrinter(java.io.Writer writer)
Creates a new CSV table printer for the specified writer. Headings will not be displayed by default.

Parameters:
writer - The writer to output tables to.
Method Detail

setDisplayHeadings

public void setDisplayHeadings(boolean displayHeadings)
Specify whether or not table headings should be displayed.

Parameters:
displayHeadings - true if table headings should be displayed.

getSerializer

protected TableSerializer getSerializer()
Creates a new table serializer based on the configuration of this table printer.

Specified by:
getSerializer in class TablePrinter
Returns:
Returns a new table serializer based on the configuration of this table printer.