I have code which do serialisation and save the output in the file. My code:
private ByteArrayOutputStream baos = new ByteArrayOutputStream(); public voi