Class JSONOutputPrinter
- java.lang.Object
-
- org.infinispan.rest.operations.mediatypes.impl.JSONOutputPrinter
-
- All Implemented Interfaces:
OutputPrinter
public class JSONOutputPrinter extends Object implements OutputPrinter
OutputPrinterfor JSON values.- Author:
- Sebastian Ćaskawiec
-
-
Constructor Summary
Constructors Constructor Description JSONOutputPrinter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]print(String cacheName, CacheSet<?> keys, Charset charset)Converts all values in the cache to a desired output format.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.rest.operations.mediatypes.OutputPrinter
asString
-
-
-
-
Field Detail
-
logger
protected static final Log logger
-
-
Method Detail
-
print
public byte[] print(String cacheName, CacheSet<?> keys, Charset charset)
Description copied from interface:OutputPrinterConverts all values in the cache to a desired output format.- Specified by:
printin interfaceOutputPrinter- Parameters:
cacheName- Cache name (sometimes might be used as xml or json key).keys- Key Set.charset- DesiredCharset- Returns:
- Byte array representation of converted values.
-
-