I have a class which has a method that is receiving an object as a parameter. This method is invoked via RMI.
public RMIClass extends Serializable { pub
If you want to write to a ByteBuffer you can do this.
private static void uncompress(final byte[] input, final ByteBuffer output) throws IOException { final GZIPInputStream inputGzipStream = new GZIPInputStream(new ByteArrayInputStream(input)); Channels.newChannel(inputGzipStream).read(output); }