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); } }