setKrakedSize(JSONHelper.getLongSafe(j, "kraked_size"));
setKrakedUrl(JSONHelper.getStringSafe(j, "kraked_url"));
setOriginalSize(JSONHelper.getLongSafe(j, "original_size"));
setSavedBytes(JSONHelper.getLongSafe(j, "saved_bytes"));
setSuccess(JSONHelper.getBooleanSafe(j, "success"));
SimpleHTTPClient client = new SimpleHTTPClient();
try {
setKrakedFile(client.grabRawStream(getKrakedUrl()));
} catch (IllegalStateException ex) {
Logger.getLogger(JKrakenResult.class.getName()).log(Level.SEVERE, "", ex);
} catch (IOException ex) {
Logger.getLogger(JKrakenResult.class.getName()).log(Level.SEVERE, "", ex);
}