com.google.visualization.datasource.render
Class CsvRenderer

java.lang.Object
  extended by com.google.visualization.datasource.render.CsvRenderer

public class CsvRenderer
extends Object

Takes a data table and returns a csv string.

Author:
Nimrod T.

Method Summary
static String renderCsvError(ResponseStatus responseStatus)
          Renders an error message.
static CharSequence renderDataTable(DataTable dataTable, com.ibm.icu.util.ULocale locale, String separator)
          Generates a csv string representation of a data table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

renderDataTable

public static CharSequence renderDataTable(DataTable dataTable,
                                           com.ibm.icu.util.ULocale locale,
                                           String separator)
Generates a csv string representation of a data table.

Parameters:
dataTable - The data table.
locale - The locale. If null, uses the default from LocaleUtil#getDefaultLocale.
separator - The separator string used to delimit row values. If the separator is null, comma is used as a separator.
Returns:
The char sequence with the csv string.

renderCsvError

public static String renderCsvError(ResponseStatus responseStatus)
Renders an error message.

Parameters:
responseStatus - The response status.
Returns:
An error message.


Copyright © 2012 Google. All Rights Reserved.