net.sf.opensmus
Class MUSMsgContent

java.lang.Object
  extended by net.sf.opensmus.MUSMsgContent

public class MUSMsgContent
extends java.lang.Object

Class representing the content portion of a message formatted according to the Shockwave MultiUserServer specs.
See technote 15465 "Shockwave Multiuser protocol description" at http://go.adobe.com/kb/ts_tn_15465_en-us for more information about the internal structure of a Shockwave binary message. Shockwave is a trademark of Adobe, Inc. All rights reserved.


Field Summary
 java.util.Vector<LValue> m_list
          Public vector element storing the LValue members.
 
Constructor Summary
MUSMsgContent()
          Default Constructor
 
Method Summary
 boolean addElement(LValue elem)
          Adds a LValue element to the message contents
 int count()
          Returns the number of elements in the message contents list
 void dump()
          Reserved for internal use of OpenSMUS.
 int extractFromBytes(byte[] rawBytes)
          Reserved for internal use of OpenSMUS.
 byte[] getBytes()
          Reserved for internal use of OpenSMUS.
 LValue getElementAt(int pos)
          Fetches an LValue element from message contents list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_list

public java.util.Vector<LValue> m_list
Public vector element storing the LValue members.

Constructor Detail

MUSMsgContent

public MUSMsgContent()
Default Constructor

Method Detail

addElement

public boolean addElement(LValue elem)
Adds a LValue element to the message contents

Parameters:
elem - LValue to add
Returns:
boolean

getElementAt

public LValue getElementAt(int pos)
Fetches an LValue element from message contents list. Usually messages contain only one element, a LList, which in turn contains other values.

Parameters:
pos - index of the element to be retrieved
Returns:
LValue

count

public int count()
Returns the number of elements in the message contents list


extractFromBytes

public int extractFromBytes(byte[] rawBytes)
Reserved for internal use of OpenSMUS.


dump

public void dump()
Reserved for internal use of OpenSMUS.


getBytes

public byte[] getBytes()
Reserved for internal use of OpenSMUS.