Class Deserializer

java.lang.Object
org.red5.io.object.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)
  • Field Details

    • log

      private static final org.slf4j.Logger log
    • BLACK_LIST

      private static Set<String> BLACK_LIST
  • Constructor Details

    • Deserializer

      private Deserializer()
  • Method Details

    • loadBlackList

      public static void loadBlackList() throws IOException
      Throws:
      IOException
    • 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