Package org.red5.io.object
Class Deserializer
java.lang.Object
org.red5.io.object.Deserializer
The Deserializer class reads data input and handles the data according to the core data types
- Author:
- The Red5 Project, Luke Hubbard, Codegent Ltd ([email protected])
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 void
-
Field Details
-
log
private static final org.slf4j.Logger log -
BLACK_LIST
-
-
Constructor Details
-
Deserializer
private Deserializer()
-
-
Method Details
-
loadBlackList
- Throws:
IOException
-
deserialize
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
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
-