接口 Serializer

    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static java.util.Map<java.lang.String,​java.lang.Class<?>> CLASS_CACHE  
    • 方法概要

      所有方法 实例方法 抽象方法 默认方法 
      修饰符和类型 方法 说明
      <T> T deserialize​(byte[] data)
      Deserialize the data.
      <T> T deserialize​(byte[] data, java.lang.Class<T> cls)
      Deserialize the data.
      <T> T deserialize​(byte[] data, java.lang.reflect.Type type)
      Deserialize the data.
      default <T> T deserialize​(byte[] data, java.lang.String classFullName)
      Deserialize the data.
      java.lang.String name()
      The name of the serializer implementer.
      <T> byte[] serialize​(T obj)
      Serialize the object.
    • 字段详细资料

      • CLASS_CACHE

        static final java.util.Map<java.lang.String,​java.lang.Class<?>> CLASS_CACHE
    • 方法详细资料

      • deserialize

        <T> T deserialize​(byte[] data)
        Deserialize the data.
        类型参数:
        T - class type
        参数:
        data - byte[]
        返回:
        target object instance
      • deserialize

        <T> T deserialize​(byte[] data,
                          java.lang.Class<T> cls)
        Deserialize the data.
        类型参数:
        T - class type
        参数:
        data - byte[]
        cls - class
        返回:
        target object instance
      • deserialize

        <T> T deserialize​(byte[] data,
                          java.lang.reflect.Type type)
        Deserialize the data.
        类型参数:
        T - class type
        参数:
        data - byte[]
        type - data type
        返回:
        target object instance
      • deserialize

        default <T> T deserialize​(byte[] data,
                                  java.lang.String classFullName)
        Deserialize the data.
        类型参数:
        T - class type
        参数:
        data - byte[]
        classFullName - class full name
        返回:
        target object instance
      • serialize

        <T> byte[] serialize​(T obj)
        Serialize the object.
        参数:
        obj - target obj
        返回:
        byte[]
      • name

        java.lang.String name()
        The name of the serializer implementer.
        返回:
        name