java - Most compressed way to store String Object -
i have string object want save file, , dont care if saved plain text or binary. have tried saving plain text , 27 bytes. tried objectoutputstream , 24 bytes. there better way of saving string objects file? string 189:25:600:-324324214& , intend have thousands of them. thats why want compressed, , of course each string bit different
wrap fileoutputstream inside deflatoroutputstream inside objectoutputstream create file. (write entire array single object.) wrap fileinputstream inside inflatorinputstream inside objectinputstream read.
Comments
Post a Comment