com.google.visualization.datasource.render
Class CsvRenderer

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

public class CsvRenderer
extends java.lang.Object

Takes a data table and returns a csv string.

Author:
Nimrod T.

Method Summary
static java.lang.String renderCsvError(ResponseStatus responseStatus)
          Renders an error message.
static java.lang.CharSequence renderDataTable(DataTable dataTable, com.ibm.icu.util.ULocale locale, java.lang.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 java.lang.CharSequence renderDataTable(DataTable dataTable,
                                                     com.ibm.icu.util.ULocale locale,
                                                     java.lang.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 java.lang.String renderCsvError(ResponseStatus responseStatus)
Renders an error message.

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


Copyright © 2009 Google. All Rights Reserved.