Package org.red5.io.amf3
Class AMF3
java.lang.Object
org.red5.io.amf3.AMF3
AMF3 data type definitions.
For detailed specification please see the link below.
- Author:
- The Red5 Project, Luke Hubbard, Codegent Ltd ([email protected]), Joachim Bauch ([email protected]), Paul Gregoire ([email protected])
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMax string lengthstatic final longMaximum possible value for integer number encoding.static final longMinimum possible value for integer number encoding.static final byteArray start markerstatic final byteBoolean false markerstatic final byteBoolean true markerstatic final byteByteArray markerstatic final byteDate markerstatic final byteDictionarystatic final byteInteger markerstatic final byteNull markerstatic final byteNumber / Double markerstatic final byteObject start markerstatic final byteExternalizable object.static final byteProperty list encoding.static final byteProxy object.static final byteName-value encoding.static final byteString markerstatic final byteUndefined markerstatic final byteVector<int> markerstatic final byteVector<Number> markerstatic final byteVector<Object> markerstatic final byteVector<uint> markerstatic final byteXML start markerstatic final byteXML document marker
This is for the legacy XMLDocument type is retained in the language as flash.xml.XMLDocument. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MIN_INTEGER_VALUE
public static final long MIN_INTEGER_VALUEMinimum possible value for integer number encoding.- See Also:
-
MAX_INTEGER_VALUE
public static final long MAX_INTEGER_VALUEMaximum possible value for integer number encoding.- See Also:
-
LONG_STRING_LENGTH
public static final int LONG_STRING_LENGTHMax string length- See Also:
-
TYPE_UNDEFINED
public static final byte TYPE_UNDEFINEDUndefined marker- See Also:
-
TYPE_NULL
public static final byte TYPE_NULLNull marker- See Also:
-
TYPE_BOOLEAN_FALSE
public static final byte TYPE_BOOLEAN_FALSEBoolean false marker- See Also:
-
TYPE_BOOLEAN_TRUE
public static final byte TYPE_BOOLEAN_TRUEBoolean true marker- See Also:
-
TYPE_INTEGER
public static final byte TYPE_INTEGERInteger marker- See Also:
-
TYPE_NUMBER
public static final byte TYPE_NUMBERNumber / Double marker- See Also:
-
TYPE_STRING
public static final byte TYPE_STRINGString marker- See Also:
-
TYPE_XML_DOCUMENT
public static final byte TYPE_XML_DOCUMENTXML 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:
-
TYPE_DATE
public static final byte TYPE_DATEDate marker- See Also:
-
TYPE_ARRAY
public static final byte TYPE_ARRAYArray start marker- See Also:
-
TYPE_OBJECT
public static final byte TYPE_OBJECTObject start marker- See Also:
-
TYPE_XML
public static final byte TYPE_XMLXML start marker- See Also:
-
TYPE_BYTEARRAY
public static final byte TYPE_BYTEARRAYByteArray marker- See Also:
-
TYPE_VECTOR_INT
public static final byte TYPE_VECTOR_INTVector<int> marker- See Also:
-
TYPE_VECTOR_UINT
public static final byte TYPE_VECTOR_UINTVector<uint> marker- See Also:
-
TYPE_VECTOR_NUMBER
public static final byte TYPE_VECTOR_NUMBERVector<Number> marker- See Also:
-
TYPE_VECTOR_OBJECT
public static final byte TYPE_VECTOR_OBJECTVector<Object> marker- See Also:
-
TYPE_DICTIONARY
public static final byte TYPE_DICTIONARYDictionary- See Also:
-
TYPE_OBJECT_PROPERTY
public static final byte TYPE_OBJECT_PROPERTYProperty 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:
-
TYPE_OBJECT_EXTERNALIZABLE
public static final byte TYPE_OBJECT_EXTERNALIZABLEExternalizable 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:
-
TYPE_OBJECT_VALUE
public static final byte TYPE_OBJECT_VALUEName-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:
-
TYPE_OBJECT_PROXY
public static final byte TYPE_OBJECT_PROXYProxy object.- See Also:
-
-
Constructor Details
-
AMF3
public AMF3()
-