- Enclosing interface:
KeyValuesMedia
public static interface KeyValuesMedia.Formatter
A formatter for writing key-value pairs to an output.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringFormats key-value pairs and returns them as a string.voidformat(Appendable appendable, KeyValues kvs) Formats key-value pairs into the providedAppendable.default voidformat(StringBuilder stringBuilder, KeyValues kvs) Formats key-value pairs into aStringBuilder.
-
Method Details
-
format
Formats key-value pairs into the providedAppendable.- Parameters:
appendable- the appendable to write tokvs- the key-value pairs to format- Throws:
IOException- if an I/O error occurs during formatting
-
format
Formats key-value pairs into aStringBuilder.- Parameters:
stringBuilder- the string builder to write tokvs- the key-value pairs to format
-
format
Formats key-value pairs and returns them as a string.- Parameters:
kvs- the key-value pairs to format- Returns:
- the formatted key-value pairs as a string
-