if (!StringChecker.validString(zoneid)) {
throw new SQLException("Invalid string zoneid=(" + zoneid + ")");
}
ByteArrayOutputStream array = new ByteArrayOutputStream();
DeflaterOutputStream out_stream = new DeflaterOutputStream(array);
OutputSerializer os = new OutputSerializer(out_stream);
/* compute how many storable objects exists in zone. */
int amount = 0;
for (RPObject object : content) {
if (object.isStorable()) {
amount++;
}
}
os.write(amount);
boolean empty = true;
for (RPObject object : content) {
if (object.isStorable()) {
object.writeObject(os, DetailLevel.FULL);
empty = false;
}
}
out_stream.close();
/* Setup the stream for a blob */
ByteArrayInputStream inStream = new ByteArrayInputStream(array.toByteArray());
String query;