|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.io.object.DataTypes
public class DataTypes
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.
Field Summary | |
---|---|
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_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_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 Summary | |
---|---|
DataTypes()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 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 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
Constructor Detail |
---|
public DataTypes()
Method Detail |
---|
public static String toStringValue(byte dataType)
dataType
- AS data type as byte
public static boolean isBasicType(byte type)
type
- Data type as byte
true
if data type is primitive, false
otherwisepublic static boolean isComplexType(byte type)
type
- Data type as byte
true
if data type is complex (non-primitive), false
otherwisepublic static boolean isCustomType(byte type)
type
- Data type as byte
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |