Interface KeyValuesMedia.Formatter

Enclosing interface:
KeyValuesMedia

public static interface KeyValuesMedia.Formatter
A formatter for writing key-value pairs to an output.
  • Method Details

    • format

      void format(Appendable appendable, KeyValues kvs) throws IOException
      Formats key-value pairs into the provided Appendable.
      Parameters:
      appendable - the appendable to write to
      kvs - the key-value pairs to format
      Throws:
      IOException - if an I/O error occurs during formatting
    • format

      default void format(StringBuilder stringBuilder, KeyValues kvs)
      Formats key-value pairs into a StringBuilder.
      Parameters:
      stringBuilder - the string builder to write to
      kvs - the key-value pairs to format
    • format

      default String format(KeyValues kvs)
      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