de.humatic.dsj.src.rtmp
Class AMF3

java.lang.Object
  extended by de.humatic.dsj.src.rtmp.AMF3

public class AMF3
extends java.lang.Object

Defines constants and supplies encoding functions for Action Message Format version 3 (AMF3) datatransfer


Field Summary
static int ARRAY
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int BYTE_ARRAY
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int DATE
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int DOUBLE
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int FALSE
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int INT
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int MASK
           
static int NULL
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int OBJECT
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int STRING
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int TRUE
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int UNDEFINED
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int XML
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
static int XML_DOC
          AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK
 
Constructor Summary
AMF3()
           
 
Method Summary
static int encodeBool(boolean val, byte[] cont, int pos)
           
static int encodeDouble(double value, byte[] cont, int pos)
           
static int encodeNull(byte[] cont, int pos)
           
static int encodeString(java.lang.String s, boolean prependCode, byte[] cont, int pos)
           
static int encodeUndef(byte[] cont, int pos)
           
static int encodeVarLengthInt(int value, byte[] cont, int pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

NULL

public static final int NULL
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

FALSE

public static final int FALSE
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

TRUE

public static final int TRUE
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

INT

public static final int INT
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

STRING

public static final int STRING
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

XML_DOC

public static final int XML_DOC
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

DATE

public static final int DATE
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

ARRAY

public static final int ARRAY
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

OBJECT

public static final int OBJECT
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

XML

public static final int XML
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

BYTE_ARRAY

public static final int BYTE_ARRAY
AMF3 datatypes, the actual AMF marker value is the product of AMF3.CONSTANT & AMF3.MASK

See Also:
Constant Field Values

MASK

public static final int MASK
See Also:
Constant Field Values
Constructor Detail

AMF3

public AMF3()
Method Detail

encodeUndef

public static int encodeUndef(byte[] cont,
                              int pos)

encodeNull

public static int encodeNull(byte[] cont,
                             int pos)

encodeBool

public static int encodeBool(boolean val,
                             byte[] cont,
                             int pos)

encodeVarLengthInt

public static int encodeVarLengthInt(int value,
                                     byte[] cont,
                                     int pos)

encodeDouble

public static int encodeDouble(double value,
                               byte[] cont,
                               int pos)

encodeString

public static int encodeString(java.lang.String s,
                               boolean prependCode,
                               byte[] cont,
                               int pos)