Class BaseInput

  • Direct Known Subclasses:
    Input

    public class BaseInput
    extends Object
    BaseInput represents a way to map input to a HashMap. This class is meant to be extended.
    Author:
    The Red5 Project, Luke Hubbard, Codegent Ltd (luke@codegent.com)
    • Constructor Detail

      • BaseInput

        public BaseInput()
    • Method Detail

      • storeReference

        protected int storeReference​(Object obj)
        Store an object into a map.
        Parameters:
        obj - Object to store
        Returns:
        reference id
      • storeReference

        protected void storeReference​(int refId,
                                      Object newRef)
        Replace a referenced object with another one. This is used by the AMF3 deserializer to handle circular references.
        Parameters:
        refId - reference id
        newRef - replacement object
      • clearReferences

        public void clearReferences()
        Clears the map
      • getReference

        protected Object getReference​(int id)
        Returns the object with the parameters id
        Parameters:
        id - Object reference id
        Returns:
        Object Object reference with given id
      • classAllowed

        protected static boolean classAllowed​(String className)
        Checks the deserializer 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