msghead.java

来自「采用JAVA开发」· Java 代码 · 共 55 行

JAVA
55
字号
package com.gctech.sms.sp.msg;

import java.io.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: gctech</p>
 * @author 王红宝
 * @version $Id: MsgHead.java,v 1.1.1.1 2004/07/26 02:44:10 lijz Exp $
 */

public class MsgHead implements Serializable {
  private int length;
  private int commandId;
  private int commandStatus;
  private int seq;
  public MsgHead() {
  }
  public int getLength() {
    return length;
  }
  public int getCommandId() {
    return commandId;
  }
  public int getCommandStatus() {
    return commandStatus;
  }
  public int getSeq() {
    return seq;
  }
  public void setSeq(int seq) {
    this.seq = seq;
  }
  public void setCommandStatus(int commandStatus) {
    this.commandStatus = commandStatus;
  }
  public void setCommandId(int commandId) {
    this.commandId = commandId;
  }
  public void setLength(int length) {
    this.length = length;
  }
  public String toString() {
    return "commandStatus:"+commandStatus;
  }
  private void writeObject(ObjectOutputStream oos) throws IOException {
    oos.defaultWriteObject();
  }
  private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException {
    ois.defaultReadObject();
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?