java.lang.Object
com.pervasive.datarush.encoding.text.TextIp6Formatter
- All Implemented Interfaces:
TokenFormatter
A formatter representing ip6address token values as text IPv6 strings.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new formatter.TextIp6Formatter(String nullIndicator) Creates a new formatter. -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringformat()Formats the current value of the source as a text value.final voidsetSource(ScalarValued source) Sets the container holding values to be formatted.
-
Constructor Details
-
TextIp6Formatter
public TextIp6Formatter()Creates a new formatter. Null values are output as the empty string. -
TextIp6Formatter
Creates a new formatter. Null values are output as the specified string.- Parameters:
nullIndicator- the text value to use for null values
-
-
Method Details
-
setSource
Description copied from interface:TokenFormatterSets the container holding values to be formatted. A reference to this container is held and accessed only when an formatting is requested.- Specified by:
setSourcein interfaceTokenFormatter- Parameters:
source- the value container to format
-
format
Description copied from interface:TokenFormatterFormats the current value of the source as a text value.- Specified by:
formatin interfaceTokenFormatter- Returns:
- the value of the source as a string
-