Class AMFDataContextSerialize


  • public class AMFDataContextSerialize
    extends Object

    AMF context used for serialization

    • Constructor Detail

      • AMFDataContextSerialize

        public AMFDataContextSerialize()
        Constructor
      • AMFDataContextSerialize

        public AMFDataContextSerialize​(int objectEncoding)
        Contructor with object encoding, see AMFData.AMF_LEVEL*
        Parameters:
        objectEncoding - object encoding, see AMFData.AMF_LEVEL*
    • Method Detail

      • getObjectEncoding

        public int getObjectEncoding()
        Get object encoding, see AMFData.AMF_LEVEL*
        Returns:
        object encoding, see AMFData.AMF_LEVEL*
      • setObjectEncoding

        public void setObjectEncoding​(int objectEncoding)
        Set object encoding, see AMFData.AMF_LEVEL*
        Parameters:
        objectEncoding - object encoding, see AMFData.AMF_LEVEL*
      • getTargetEncoding

        public int getTargetEncoding()
        Get target encoding, see AMFData.AMF_LEVEL*
        Returns:
        target encoding, see AMFData.AMF_LEVEL*
      • setTargetEncoding

        public void setTargetEncoding​(int targetEncoding)
        Set target encoding, , see AMFData.AMF_LEVEL*
        Parameters:
        targetEncoding - target encoding, , see AMFData.AMF_LEVEL*
      • isAMF3

        public boolean isAMF3()
        Is context AMF3
        Returns:
        true, if AMF3
      • isAMF0

        public boolean isAMF0()
        Is context AMF0
        Returns:
        true, if AMF0
      • getStringReference

        public int getStringReference​(String str)
        Get index of string item in string cache
        Parameters:
        str - string value
        Returns:
        index
      • getObjectReference

        public int getObjectReference​(Object obj)
        Get index of object in object cache
        Parameters:
        obj - object value
        Returns:
        index
      • getTraitReference

        public int getTraitReference​(AMFDataTrait obj)
        Get index of trait object in trait cache
        Parameters:
        obj - trait object
        Returns:
        index
      • writeString

        public void writeString​(java.io.DataOutputStream out,
                                String str)
        Write a stream to the output buffer
        Parameters:
        out - output buffer
        str - string value