01: package vicazh.hyperpool;
02:
03: import java.io.*;
04:
05: /**
06: * The communicator data
07: *
08: * @author Victor Zhigunov
09: * @version 0.4.0
10: */
11: public class ComData implements Serializable {
12: byte[] b;
13: int[] objectID;
14: int currentID;
15:
16: ComData(byte[] b) {
17: this .b = b;
18: }
19:
20: ComData(byte[] b, int currentID) {
21: this (b);
22: this .currentID = currentID;
23: }
24:
25: transient private int i;
26:
27: int get() {
28: return objectID[i++];
29: }
30:
31: }
|