예제 #1
0
 public void readPortable(PortableReader reader) throws IOException {
   name = reader.readUTF("n");
   threadId = reader.readInt("t");
   final ObjectDataInput in = reader.getRawDataInput();
   key = new Data();
   key.readData(in);
 }
 @Override
 public void readPortable(PortableReader in) throws IOException {
   key = in.readUTF("key");
   stringVal = in.readUTF("stringVal");
   doubleVal = in.readDouble("doubleVal");
   longVal = in.readLong("longVal");
   intVal = in.readInt("intVal");
 }
예제 #3
0
 public void read(PortableReader reader) throws IOException {
   name = reader.readUTF("n");
   int size = reader.readInt("size");
   if (size > 0) {
     ObjectDataInput input = reader.getRawDataInput();
     for (int i = 0; i < size; i++) {
       Data key = input.readData();
       keys.add(key);
     }
   }
 }
예제 #4
0
 public void readPortable(PortableReader reader) throws IOException {
   b = reader.readByte("b");
   bool = reader.readBoolean("bool");
   c = reader.readChar("c");
   s = reader.readShort("s");
   i = reader.readInt("i");
   l = reader.readLong("l");
   f = reader.readFloat("f");
   d = reader.readDouble("d");
   str = reader.readUTF("str");
 }
 public void readPortable(PortableReader reader) throws IOException {
   int size = reader.readInt("s");
   final ObjectDataInput in = reader.getRawDataInput();
   entrySet = new HashSet<Map.Entry>(size);
   for (int i = 0; i < size; i++) {
     Data key = new Data();
     Data value = new Data();
     key.readData(in);
     value.readData(in);
     entrySet.add(new AbstractMap.SimpleEntry(key, value));
   }
 }
 @Override
 public void read(PortableReader reader) throws IOException {
   name = reader.readUTF("n");
   int size = reader.readInt("size");
   keys = new HashSet<Data>();
   ObjectDataInput input = reader.getRawDataInput();
   for (int i = 0; i < size; i++) {
     Data key = new Data();
     key.readData(input);
     keys.add(key);
   }
   processor = input.readObject();
 }
예제 #7
0
 public void readPortable(PortableReader reader) throws IOException {
   name = reader.readUTF("n");
   message = reader.readUTF("m");
   details = reader.readUTF("d");
   type = reader.readInt("t");
 }
예제 #8
0
 @Override
 public void read(PortableReader reader) throws IOException {
   super.read(reader);
   maxSize = reader.readInt("m");
 }
예제 #9
0
 public void readPortable(PortableReader reader) throws IOException {
   name = reader.readUTF("n");
   permitCount = reader.readInt("p");
 }
예제 #10
0
 public void readPortable(PortableReader reader) throws IOException {
   super.readPortable(reader);
   index = reader.readInt("i");
   value = new Data();
   value.readData(reader.getRawDataInput());
 }