Package org.red5.io.object
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)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanclassAllowed(String className)Checks to see if a given class is blacklisted or not.static <T> Tdeserialize(Input in, Type target)Deserializes the input parameter and returns an Object which must then be cast to a core data typestatic voidloadBlackList()
-
-
-
Method Detail
-
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- inputtarget- 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
-
-