Class StringTranscoder

    • Field Detail

      • charset

        private java.lang.String charset
    • Constructor Detail

      • StringTranscoder

        public StringTranscoder​(java.lang.String charset)
      • StringTranscoder

        public StringTranscoder()
    • Method Detail

      • decode

        public java.lang.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​(java.lang.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