Class DataTypes


  • public class DataTypes
    extends Object
    The core datatypes supported by red5, I have left out undefined (this is up for debate). If a codec returns one of these datatypes its handled by the base serializer.
    Author:
    The Red5 Project, Luke Hubbard, Codegent Ltd (luke@codegent.com)
    • Constructor Detail

      • DataTypes

        public DataTypes()
    • Method Detail

      • toStringValue

        public static String toStringValue​(byte dataType)
        Returns the string value of the data type
        Parameters:
        dataType - AS data type as byte
        Returns:
        String String value of given ActionScript data type
      • isBasicType

        public static boolean isBasicType​(byte type)
        Returns whether it is a basic data type
        Parameters:
        type - Data type as byte
        Returns:
        boolean true if data type is primitive, false otherwise
      • isComplexType

        public static boolean isComplexType​(byte type)
        Returns whether it is a complex data type
        Parameters:
        type - Data type as byte
        Returns:
        boolean true if data type is complex (non-primitive), false otherwise
      • isCustomType

        public static boolean isCustomType​(byte type)
        Returns whether it is a custom data type
        Parameters:
        type - Data type as byte
        Returns:
        boolean Whether given type is of custom type