Thanks for the suggestions.  It will take me a while to digest.  My problem 
is on the "server-side" of my operation.  On the client this works 
perfectly and the product does not raise any error from gzip -d.

public File writeLocalJson(AbstractPayload payload) {
    File jsonDir = getResultFile().isDirectory() ? getResultFile() : 
getResultFile().getParentFile();
    File jsonFile = new File(jsonDir, getProjectName() + "_" + getChromosome() 
+ "." + getTag().toString() + "." + getSimulationCount() + ".json.gz");
    if (jsonFile.exists()) {
        return jsonFile;
    }

    try (FileOutputStream jsonStream = new FileOutputStream(jsonFile);
         GZIPOutputStream gzipper = new GZIPOutputStream(jsonStream)) {
        payload.asJson(gzipper);
    }
    catch (IOException ioe) {
        logger.error ("Complete write failure of payload send {}", 
payload.getRunTag(), ioe);
        throw new RuntimeException("hoping for oldstyle save", ioe);
    }
    return jsonFile;
}


which is pretty much identical with the server-side code. Weird?


-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/a4861bae-9fed-4d01-9ef2-fb19aa4d083a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to