KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > maverick > multiplex > Message


1 /*
2  * Created on 08-May-2005
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */

7 package com.maverick.multiplex;
8
9 import com.maverick.util.ByteArrayReader;
10
11
12 /**
13  * @author lee
14  *
15  * TODO To change the template for this generated type comment go to
16  * Window - Preferences - Java - Code Style - Code Templates
17  */

18 public class Message extends ByteArrayReader {
19     
20     int messageid;
21     Message next;
22     Message previous;
23     
24     public Message() {
25         super(new byte[] {} );
26     }
27     
28     public Message(byte[] msg) {
29         super(msg);
30         messageid = read();
31     }
32     
33     public int getMessageId() {
34         return messageid;
35     }
36
37 }
38
Popular Tags