Class MarshallerUtil


  • public final class MarshallerUtil
    extends java.lang.Object
    Author:
    Galder ZamarreƱo
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T bytes2obj​(Marshaller marshaller, byte[] bytes, boolean objectStorage, ClassWhiteList whitelist)  
      static byte[] obj2bytes​(Marshaller marshaller, java.lang.Object o, boolean isKey, int estimateKeySize, int estimateValueSize)  
      static <T> T tryJavaDeserialize​(byte[] bytes, byte[] ret, ClassWhiteList whitelist)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • bytes2obj

        public static <T> T bytes2obj​(Marshaller marshaller,
                                      byte[] bytes,
                                      boolean objectStorage,
                                      ClassWhiteList whitelist)
      • tryJavaDeserialize

        public static <T> T tryJavaDeserialize​(byte[] bytes,
                                               byte[] ret,
                                               ClassWhiteList whitelist)
      • obj2bytes

        public static byte[] obj2bytes​(Marshaller marshaller,
                                       java.lang.Object o,
                                       boolean isKey,
                                       int estimateKeySize,
                                       int estimateValueSize)