Class DataTypes

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

    • CORE_END_OBJECT

      public static final byte CORE_END_OBJECT
      End marker
      See Also:
    • CORE_SWITCH

      public static final byte CORE_SWITCH
      Switch decoding marker
      See Also:
    • CORE_SKIP

      public static final byte CORE_SKIP
      Padding marker
      See Also:
    • CORE_NULL

      public static final byte CORE_NULL
      Null type marker
      See Also:
    • CORE_BOOLEAN

      public static final byte CORE_BOOLEAN
      Boolean type marker
      See Also:
    • CORE_NUMBER

      public static final byte CORE_NUMBER
      Number type marker
      See Also:
    • CORE_STRING

      public static final byte CORE_STRING
      String type marker
      See Also:
    • CORE_DATE

      public static final byte CORE_DATE
      Date type marker
      See Also:
    • CORE_ARRAY

      public static final byte CORE_ARRAY
      Array type marker
      See Also:
    • CORE_MAP

      public static final byte CORE_MAP
      Map type marker
      See Also:
    • CORE_XML

      public static final byte CORE_XML
      XML type marker
      See Also:
    • CORE_OBJECT

      public static final byte CORE_OBJECT
      Object (Hash) type marker
      See Also:
    • CORE_BYTEARRAY

      public static final byte CORE_BYTEARRAY
      ByteArray type marker (AMF3 only)
      See Also:
    • OPT_REFERENCE

      public static final byte OPT_REFERENCE
      Reference type, this is optional for codecs to support
      See Also:
    • CUSTOM_MOCK_MASK

      public static final byte CUSTOM_MOCK_MASK
      Custom datatype mock mask marker
      See Also:
    • CUSTOM_AMF_MASK

      public static final byte CUSTOM_AMF_MASK
      Custom datatype AMF mask
      See Also:
    • CUSTOM_RTMP_MASK

      public static final byte CUSTOM_RTMP_MASK
      Custom datatype RTMP mask
      See Also:
    • CUSTOM_JSON_MASK

      public static final byte CUSTOM_JSON_MASK
      Custom datatype JSON mask
      See Also:
    • CUSTOM_XML_MASK

      public static final byte CUSTOM_XML_MASK
      Custom datatype XML mask
      See Also:
    • CORE_VECTOR_INT

      public static final byte CORE_VECTOR_INT
      Vector type markers
      See Also:
    • CORE_VECTOR_UINT

      public static final byte CORE_VECTOR_UINT
      See Also:
    • CORE_VECTOR_NUMBER

      public static final byte CORE_VECTOR_NUMBER
      See Also:
    • CORE_VECTOR_OBJECT

      public static final byte CORE_VECTOR_OBJECT
      See Also:
  • Constructor Details

    • DataTypes

      public DataTypes()
  • Method Details

    • 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