문제

I have to store a list of Serializable Objects that contains various nested lists of other Objects with many fields, I have noticed that using a normal ObjectOutputstream to store this list requires lot of space also for few entries.

Is there a way to automatically shrink the serializable object before the storage? (without change my Object structure)

도움이 되었습니까?

해결책

You could try compressing the object before you store it using a GZIPOutputStream.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top