Interface StringMapper

All Known Implementing Classes:
StringMapperImpl

public interface StringMapper
Mapper used to transform values between plain strings and base64 encoded strings.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    map(byte[] value)
    Maps a byte array to a string using UTF-8 encoding.
    default byte[]
    map(String value)
    Maps a string to a byte array using UTF-8 encoding.
  • Method Details

    • map

      default String map(byte[] value)
      Maps a byte array to a string using UTF-8 encoding.
      Parameters:
      value - Byte array to map
      Returns:
      Resulting string from byte array
    • map

      default byte[] map(String value)
      Maps a string to a byte array using UTF-8 encoding.
      Parameters:
      value - String to map
      Returns:
      Resulting byte array