public class StringFormatter extends Object
Constructor and Description |
---|
StringFormatter(boolean trimWhitespace)
Creates a new formatter with the specified
behavior with respect whitespace.
|
StringFormatter(boolean trimWhitespace,
String nullIndicator)
Creates a formatter using the specified whitespace behavior
and null indicator.
|
Modifier and Type | Method and Description |
---|---|
String |
format()
Formats the current value of the source as a text value.
|
void |
setSource(ScalarValued source)
Sets the container holding values to be formatted.
|
public StringFormatter(boolean trimWhitespace)
trimWhitespace
- indicates whether
leading and trailing whitespace should be removedpublic StringFormatter(boolean trimWhitespace, String nullIndicator)
trimWhitespace
- indicates whether
leading and trailing whitespace should be removednullIndicator
- the text value to use for null valuespublic final void setSource(ScalarValued source)
TokenFormatter
setSource
in interface TokenFormatter
source
- the value container to formatpublic final String format()
TokenFormatter
format
in interface TokenFormatter
Copyright © 2016 Actian Corporation. All rights reserved.