getValueAsString() method
public abstract String getValueAsString(int index)
public abstract String getValueAsString(int index, String charsetName)
The getValueAsString() method gets the string value corresponding to a given column in a row.
Parameters
| Parameter | Description |
|---|---|
| index | The column that contains the value to extract from the row. The first column is 0. |
| charsetName | The name of a supported charset. If null,
the default charset of the engine tier is used. To find
out the list of charsets supported by your Java™ Virtual
Machine (JVM), call the following method:
|
Returns
The string value found at the given column or null, if no value has been assigned.
Throws
| Exception | Description |
|---|---|
| IndexOutOfBoundsException | Thrown when the index is not valid. This runtime exception does not need to be explicitly caught. |
| UnsupportedEncodingException | Thrown when the specified charset is not supported. |