obj = objectIn.readObject();
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
SerializableState ss = (SerializableState)obj;
RenderContext rc = (RenderContext)ss.getObject();
ri = source.createRendering(rc);
} else if (str.equals("createScaledRendering")) {
// Read the Object from the object stream.
obj = null;
try {
obj = objectIn.readObject();
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
int w = ((Integer)obj).intValue();
try {
obj = objectIn.readObject();
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
int h = ((Integer)obj).intValue();
try {
obj = objectIn.readObject();
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
SerializableState ss = (SerializableState)obj;
RenderingHints rh = (RenderingHints)ss.getObject();
ri = source.createScaledRendering(w, h, rh);
}
if (useTileCodec) {