Interface StringEncoder<O>

All Known Implementing Classes:
AndroidBase64UrlSafeEncoder, BareJidEncoder, BareJidEncoder.LegacyEncoder, BareJidEncoder.UrlSafeEncoder, Java7Base64UrlSafeEncoder

public interface StringEncoder<O>
An interface for String encoder.
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(String string)
    Decodes a string back to it's initial representation.
    encode(O object)
    Encodes an object to another representation.
  • Method Details

    • encode

      String encode(O object)
      Encodes an object to another representation.
      Parameters:
      object - the object to encode.
      Returns:
      the encoded String
    • decode

      O decode(String string)
      Decodes a string back to it's initial representation.
      Parameters:
      string - the string to decode.
      Returns:
      the decoded object