Package soc.qase.com.message

Source Code of soc.qase.com.message.ServerLayout

//---------------------------------------------------------------------
// Name:      ServerLayout.java
// Author:      Bernard.Gorman@computing.dcu.ie
// Author:      Martin.Fredriksson@bth.se
//---------------------------------------------------------------------

package soc.qase.com.message;

import soc.qase.info.Layout;
import soc.qase.tools.Utils;

/*-------------------------------------------------------------------*/
/**  Message wrapper used when signalling HUD information from host
*  to client. */
/*-------------------------------------------------------------------*/
public class ServerLayout extends Message
{
  private Layout layout = null;

/*-------------------------------------------------------------------*/
/**  Constructor. Parses the data and extracts message details.
@param data message source. */
/*-------------------------------------------------------------------*/
  public ServerLayout(byte[] data, int off)
  {
    int length = 0;
    String displayInfo = null;

    length = Utils.stringLength(data, off);
    displayInfo = Utils.stringValue(data, off, length);

    layout = new Layout(displayInfo);

    setLength(length + 1);
  }

/*-------------------------------------------------------------------*/
/**  Get layout.
@return layout. */
/*-------------------------------------------------------------------*/
  public Layout getLayout()
  {
    return layout;
  }
}
TOP

Related Classes of soc.qase.com.message.ServerLayout

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.