Compress/uncompress LZMA strings in Java -



Compress/uncompress LZMA strings in Java -

on client side, have lzma-js compressing plain text , sending server string. far, lzma java implementations i've found takes file or inputstream argument. there implementation uses string straight input or should write inputstream string wrapper around info goten client?

just wrap string in inputstream:

inputstream stream = new bytearrayinputstream( lzmastring.getbytes(standardcharsets.utf_8) );

now can utilize string source inputstream library wants consume.

java string lzma

Comments

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

model view controller - MVC Rails Planning -