public class DataTypes extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
CORE_ARRAY
Array type marker
|
static byte |
CORE_BOOLEAN
Boolean type marker
|
static byte |
CORE_BYTEARRAY
ByteArray type marker (AMF3 only)
|
static byte |
CORE_DATE
Date type marker
|
static byte |
CORE_END_OBJECT
End marker
|
static byte |
CORE_MAP
Map type marker
|
static byte |
CORE_NULL
Null type marker
|
static byte |
CORE_NUMBER
Number type marker
|
static byte |
CORE_OBJECT
Object (Hash) type marker
|
static byte |
CORE_SKIP
Padding marker
|
static byte |
CORE_STRING
String type marker
|
static byte |
CORE_SWITCH
Switch decoding marker
|
static byte |
CORE_VECTOR_INT
Vector type markers
|
static byte |
CORE_VECTOR_NUMBER |
static byte |
CORE_VECTOR_OBJECT |
static byte |
CORE_VECTOR_UINT |
static byte |
CORE_XML
XML type marker
|
static byte |
CUSTOM_AMF_MASK
Custom datatype AMF mask
|
static byte |
CUSTOM_JSON_MASK
Custom datatype JSON mask
|
static byte |
CUSTOM_MOCK_MASK
Custom datatype mock mask marker
|
static byte |
CUSTOM_RTMP_MASK
Custom datatype RTMP mask
|
static byte |
CUSTOM_XML_MASK
Custom datatype XML mask
|
static byte |
OPT_REFERENCE
Reference type, this is optional for codecs to support
|
| Constructor and Description |
|---|
DataTypes() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBasicType(byte type)
Returns whether it is a basic data type
|
static boolean |
isComplexType(byte type)
Returns whether it is a complex data type
|
static boolean |
isCustomType(byte type)
Returns whether it is a custom data type
|
static String |
toStringValue(byte dataType)
Returns the string value of the data type
|
public static final byte CORE_END_OBJECT
public static final byte CORE_SWITCH
public static final byte CORE_SKIP
public static final byte CORE_NULL
public static final byte CORE_BOOLEAN
public static final byte CORE_NUMBER
public static final byte CORE_STRING
public static final byte CORE_DATE
public static final byte CORE_ARRAY
public static final byte CORE_MAP
public static final byte CORE_XML
public static final byte CORE_OBJECT
public static final byte CORE_BYTEARRAY
public static final byte OPT_REFERENCE
public static final byte CUSTOM_MOCK_MASK
public static final byte CUSTOM_AMF_MASK
public static final byte CUSTOM_RTMP_MASK
public static final byte CUSTOM_JSON_MASK
public static final byte CUSTOM_XML_MASK
public static final byte CORE_VECTOR_INT
public static final byte CORE_VECTOR_UINT
public static final byte CORE_VECTOR_NUMBER
public static final byte CORE_VECTOR_OBJECT
public static String toStringValue(byte dataType)
dataType - AS data type as bytepublic static boolean isBasicType(byte type)
type - Data type as bytetrue if data type is primitive, false otherwisepublic static boolean isComplexType(byte type)
type - Data type as bytetrue if data type is complex (non-primitive), false otherwisepublic static boolean isCustomType(byte type)
type - Data type as byteCopyright © 2005–2017 Red5. All rights reserved.