protected void readBody(GatewayPacketBuffer buffer) { if (PACKET_CONTENT_ALL_IN_ONE) { byte[] byts = buffer.getBytes(packetLength - 44); if (byts.length > 0) { String content = null; try { content = new String(byts, PACKET_CHARSET); } catch (UnsupportedEncodingException e) { content = new String(byts); } if (content != null) { Map<String, Object> properties = new HashMap<String, Object>(); String[] tmp = StringUtil.split(content, PACKET_CONTENT_SPLITER); for (int i = 0; i < tmp.length; i++) { String[] pair = StringUtil.split(tmp[i], "="); if (pair.length == 2) { properties.put(pair[0], pair[1]); } } fillFieldContent(this, properties, this.getClass()); } } } }