Class AMF3Utils

Object
com.wowza.wms.amf.AMF3Utils

public class AMF3Utils extends Object

AMF3 utilities

  • Constructor Details

    • AMF3Utils

      public AMF3Utils()
  • Method Details

    • deserializeDate

      public static Date deserializeDate(ByteBuffer data)
      Deserialize date type
      Parameters:
      data - buffer
      Returns:
      date
    • serializeDate

      public static int serializeDate(DataOutputStream out, Date date)
      Serialize a date object
      Parameters:
      out - output stream
      date - date
      Returns:
      number of bytes written
    • deserializeInt

      public static int deserializeInt(ByteBuffer data)
      Deserialize int
      Parameters:
      data - buffer
      Returns:
      int value
    • serializeInt

      public static int serializeInt(DataOutputStream out, int val)
      Serialize int value
      Parameters:
      out - output stream
      val - int value
      Returns:
      number of bytes written
    • deserializeString

      public static String deserializeString(ByteBuffer data, AMFDataContextDeserialize context) throws IOException
      Deserialize string
      Parameters:
      data - data
      context - AMF context
      Returns:
      string value
      Throws:
      IOException
    • deserializeString

      public static String deserializeString(ByteBuffer data) throws IOException
      Deserialize string
      Parameters:
      data - data
      Returns:
      string value
      Throws:
      IOException
    • deserializeString

      public static String deserializeString(ByteBuffer data, int utflen) throws IOException
      Deserialize string
      Parameters:
      data - data
      utflen - len of the string
      Returns:
      string value
      Throws:
      IOException
    • serializeZeroLengthString

      public static void serializeZeroLengthString(DataOutputStream out)
      Serialize empty string
      Parameters:
      out - output stream
    • serializeStringNoLength

      public static int serializeStringNoLength(DataOutputStream out, String str) throws IOException
      Serialize string but do not write the length
      Parameters:
      out - output stream
      str - string value
      Returns:
      number of bytes written
      Throws:
      IOException
    • serializeString

      public static int serializeString(DataOutputStream out, String str) throws IOException
      Serialize a string value
      Parameters:
      out - output stream
      str - string value
      Returns:
      number of bytes written
      Throws:
      IOException