Class StringTranscoder

All Implemented Interfaces:
Transcoder<String>

public class StringTranscoder extends PrimitiveTypeTranscoder<String>
String Transcoder
  • Field Details

  • Constructor Details

    • StringTranscoder

      public StringTranscoder(String charset)
    • StringTranscoder

      public StringTranscoder()
  • Method Details

    • decode

      public String decode(CachedData d)
      Description copied from interface: Transcoder
      Decode the cached object into the object it represents.
      Parameters:
      d - the data
      Returns:
      the return value
    • encode

      public CachedData encode(String o)
      Description copied from interface: Transcoder
      Encode the given object for storage.
      Parameters:
      o - the object
      Returns:
      the CachedData representing what should be sent