Interface StringCodec

All Known Implementing Classes:
Base64Encoder, Base64JavaUtilCodec, Base64JAXBCodec

public interface StringCodec
Interface for an encoder and decoder of data to string values and back.
Since:
1.4.11
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    decode(String encoded)
    Decode the provided encoded string.
    encode(byte[] data)
    Encode the provided data.
  • Method Details

    • decode

      byte[] decode(String encoded)
      Decode the provided encoded string.
      Parameters:
      encoded - the encoded string
      Returns:
      the decoded data
      Since:
      1.4.11
    • encode

      String encode(byte[] data)
      Encode the provided data.
      Parameters:
      data - the data to encode
      Returns:
      the data encoded as string
      Since:
      1.4.11