|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<OutputType>
com.google.visualization.datasource.base.OutputType
public enum OutputType
Enumeration of the supported output formats for the data source. This enumeration almost exactly correlates to the "out" parameter of the wire protocol, except JSONP which is never explicitly specified in the "out" parameter.
| Enum Constant Summary | |
|---|---|
CSV
|
|
HTML
|
|
JSON
|
|
JSONP
|
|
TSV_EXCEL
Output type value for tab-separated values encoded using UTF-16 little-endian with byte-order mark supported by Microsoft Excel. |
|
| Method Summary | |
|---|---|
static OutputType |
defaultValue()
Returns the default OutputType. |
static OutputType |
findByCode(java.lang.String code)
Finds the OutputType that matches the given code. |
java.lang.String |
getCode()
Returns the code for this OutputType. |
static OutputType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OutputType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OutputType HTML
public static final OutputType JSON
public static final OutputType JSONP
public static final OutputType CSV
public static final OutputType TSV_EXCEL
CSV output type is not supported by Excel.
The Unicode encoding understood by Excel is UTF-16 little-endian with
byte-order mark. Excel also does not support comma delimiter in UTF-16
encoded files, however, it supports tab delimiter.
The default output filename for Excel should have a .csv extension in
spite of containing tab-separated values because Excel does not
automatically associate with files having .tsv extension.
| Method Detail |
|---|
public static OutputType[] values()
for (OutputType c : OutputType.values()) System.out.println(c);
public static OutputType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getCode()
public static OutputType findByCode(java.lang.String code)
code - The code to search for.
public static OutputType defaultValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||