input.close();
output.close();
ByteArrayInputStream inStream = new ByteArrayInputStream(content);
InflaterInputStream szlib = new InflaterInputStream(inStream, new Inflater());
InputSerializer inputSerializer = new InputSerializer(szlib);
int protocolVersion = NetConst.FIRST_VERSION_WITH_MULTI_VERSION_SUPPORT - 1;
Object temp = resultSet.getObject("protocol_version");
if (temp != null) {
protocolVersion = ((Integer) temp).intValue();
}
inputSerializer.setProtocolVersion(protocolVersion);
int amount = inputSerializer.readInt();
for (int i = 0; i < amount; i++) {
try {
RPObject object = factory.transform((RPObject) inputSerializer.readObject(new RPObject()));
if (object != null) {
/* Give the object a valid id and add it */
zone.assignRPObjectID(object);
zone.add(object);