Class Deserializer


  • public class Deserializer
    extends Object
    The Deserializer class reads data input and handles the data according to the core data types
    Author:
    The Red5 Project, Luke Hubbard, Codegent Ltd (luke@codegent.com)
    • Method Detail

      • deserialize

        public static <T> T deserialize​(Input in,
                                        Type target)
        Deserializes the input parameter and returns an Object which must then be cast to a core data type
        Type Parameters:
        T - type
        Parameters:
        in - input
        target - target
        Returns:
        Object object
      • classAllowed

        public static boolean classAllowed​(String className)
        Checks to see if a given class is blacklisted or not.
        Parameters:
        className - class name/package
        Returns:
        true if not blacklisted and false if it is blacklisted