Class JSONOutputPrinter

    • Field Detail

      • logger

        protected static final Log logger
    • Constructor Detail

      • JSONOutputPrinter

        public JSONOutputPrinter()
    • Method Detail

      • print

        public byte[] print​(String cacheName,
                            CacheSet<?> keys,
                            Charset charset)
        Description copied from interface: OutputPrinter
        Converts all values in the cache to a desired output format.
        Specified by:
        print in interface OutputPrinter
        Parameters:
        cacheName - Cache name (sometimes might be used as xml or json key).
        keys - Key Set.
        charset - Desired Charset
        Returns:
        Byte array representation of converted values.