public void write(WriteContext context, Object obj) {
   if (Deploy.debug) {
     Debug.writeBegin(context, Const4.YAPSHORT);
   }
   int shortValue = ((Short) obj).shortValue();
   context.writeBytes(new byte[] {(byte) (shortValue >> 8), (byte) shortValue});
   if (Deploy.debug) {
     Debug.writeEnd(context);
   }
 }
示例#2
0
  public void write(WriteContext context, Object obj) {
    if (Deploy.debug) {
      Debug4.writeBegin(context, Const4.YAPBYTE);
    }

    context.writeByte(((Byte) obj).byteValue());

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