Package org.red5.io.amf3
Class AMF3
- java.lang.Object
-
- org.red5.io.amf3.AMF3
-
public class AMF3 extends Object
AMF3 data type definitions. For detailed specification please see the link below.- Author:
- The Red5 Project, Luke Hubbard, Codegent Ltd (luke@codegent.com), Joachim Bauch (jojo@struktur.de), Paul Gregoire (mondain@gmail.com)
- See Also:
- Action Message Format, Official Adobe AMF3 Specification
-
-
Field Summary
Fields Modifier and Type Field Description static intLONG_STRING_LENGTHMax string lengthstatic longMAX_INTEGER_VALUEMaximum possible value for integer number encoding.static longMIN_INTEGER_VALUEMinimum possible value for integer number encoding.static byteTYPE_ARRAYArray start markerstatic byteTYPE_BOOLEAN_FALSEBoolean false markerstatic byteTYPE_BOOLEAN_TRUEBoolean true markerstatic byteTYPE_BYTEARRAYByteArray markerstatic byteTYPE_DATEDate markerstatic byteTYPE_DICTIONARYDictionarystatic byteTYPE_INTEGERInteger markerstatic byteTYPE_NULLNull markerstatic byteTYPE_NUMBERNumber / Double markerstatic byteTYPE_OBJECTObject start markerstatic byteTYPE_OBJECT_EXTERNALIZABLEExternalizable object.static byteTYPE_OBJECT_PROPERTYProperty list encoding.static byteTYPE_OBJECT_PROXYProxy object.static byteTYPE_OBJECT_VALUEName-value encoding.static byteTYPE_STRINGString markerstatic byteTYPE_UNDEFINEDUndefined markerstatic byteTYPE_VECTOR_INTVector<int> markerstatic byteTYPE_VECTOR_NUMBERVector<Number> markerstatic byteTYPE_VECTOR_OBJECTVector<Object> markerstatic byteTYPE_VECTOR_UINTVector<uint> markerstatic byteTYPE_XMLXML start markerstatic byteTYPE_XML_DOCUMENTXML document marker
This is for the legacy XMLDocument type is retained in the language as flash.xml.XMLDocument.
-
Constructor Summary
Constructors Constructor Description AMF3()
-
-
-
Field Detail
-
MIN_INTEGER_VALUE
public static final long MIN_INTEGER_VALUE
Minimum possible value for integer number encoding.- See Also:
- Constant Field Values
-
MAX_INTEGER_VALUE
public static final long MAX_INTEGER_VALUE
Maximum possible value for integer number encoding.- See Also:
- Constant Field Values
-
LONG_STRING_LENGTH
public static final int LONG_STRING_LENGTH
Max string length- See Also:
- Constant Field Values
-
TYPE_UNDEFINED
public static final byte TYPE_UNDEFINED
Undefined marker- See Also:
- Constant Field Values
-
TYPE_NULL
public static final byte TYPE_NULL
Null marker- See Also:
- Constant Field Values
-
TYPE_BOOLEAN_FALSE
public static final byte TYPE_BOOLEAN_FALSE
Boolean false marker- See Also:
- Constant Field Values
-
TYPE_BOOLEAN_TRUE
public static final byte TYPE_BOOLEAN_TRUE
Boolean true marker- See Also:
- Constant Field Values
-
TYPE_INTEGER
public static final byte TYPE_INTEGER
Integer marker- See Also:
- Constant Field Values
-
TYPE_NUMBER
public static final byte TYPE_NUMBER
Number / Double marker- See Also:
- Constant Field Values
-
TYPE_STRING
public static final byte TYPE_STRING
String marker- See Also:
- Constant Field Values
-
TYPE_XML_DOCUMENT
public static final byte TYPE_XML_DOCUMENT
XML document marker
This is for the legacy XMLDocument type is retained in the language as flash.xml.XMLDocument. Similar to AMF 0, the structure of an XMLDocument needs to be flattened into a string representation for serialization. As with other strings in AMF, the content is encoded in UTF-8. XMLDocuments can be sent as a reference to a previously occurring XMLDocument instance by using an index to the implicit object reference table.- See Also:
- Constant Field Values
-
TYPE_DATE
public static final byte TYPE_DATE
Date marker- See Also:
- Constant Field Values
-
TYPE_ARRAY
public static final byte TYPE_ARRAY
Array start marker- See Also:
- Constant Field Values
-
TYPE_OBJECT
public static final byte TYPE_OBJECT
Object start marker- See Also:
- Constant Field Values
-
TYPE_XML
public static final byte TYPE_XML
XML start marker- See Also:
- Constant Field Values
-
TYPE_BYTEARRAY
public static final byte TYPE_BYTEARRAY
ByteArray marker- See Also:
- Constant Field Values
-
TYPE_VECTOR_INT
public static final byte TYPE_VECTOR_INT
Vector<int> marker- See Also:
- Constant Field Values
-
TYPE_VECTOR_UINT
public static final byte TYPE_VECTOR_UINT
Vector<uint> marker- See Also:
- Constant Field Values
-
TYPE_VECTOR_NUMBER
public static final byte TYPE_VECTOR_NUMBER
Vector<Number> marker- See Also:
- Constant Field Values
-
TYPE_VECTOR_OBJECT
public static final byte TYPE_VECTOR_OBJECT
Vector<Object> marker- See Also:
- Constant Field Values
-
TYPE_DICTIONARY
public static final byte TYPE_DICTIONARY
Dictionary- See Also:
- Constant Field Values
-
TYPE_OBJECT_PROPERTY
public static final byte TYPE_OBJECT_PROPERTY
Property list encoding. The remaining integer-data represents the number of class members that exist. The property names are read as string-data. The values are then read as AMF3-data.- See Also:
- Constant Field Values
-
TYPE_OBJECT_EXTERNALIZABLE
public static final byte TYPE_OBJECT_EXTERNALIZABLE
Externalizable object. What follows is the value of the "inner" object, including type code. This value appears for objects that implement IExternalizable, such as ArrayCollection and ObjectProxy.- See Also:
- Constant Field Values
-
TYPE_OBJECT_VALUE
public static final byte TYPE_OBJECT_VALUE
Name-value encoding. The property names and values are encoded as string-data followed by AMF3-data until there is an empty string property name. If there is a class-def reference there are no property names and the number of values is equal to the number of properties in the class-def.- See Also:
- Constant Field Values
-
TYPE_OBJECT_PROXY
public static final byte TYPE_OBJECT_PROXY
Proxy object.- See Also:
- Constant Field Values
-
-