예제 #1
0
 public Object read(ReadContext context) {
   if (Deploy.debug) {
     Debug.readBegin(context, Const4.YAPSHORT);
   }
   int value = ((context.readByte() & 0xff) << 8) + (context.readByte() & 0xff);
   if (Deploy.debug) {
     Debug.readEnd(context);
   }
   return new Short((short) value);
 }
예제 #2
0
  public Object read(ReadContext context) {
    if (Deploy.debug) {
      Debug4.readBegin(context, Const4.YAPBYTE);
    }

    byte byteValue = context.readByte();

    if (Deploy.debug) {
      Debug4.readEnd(context);
    }

    return new Byte(byteValue);
  }