import txt.xz file to android studio code example
Example: import txt.xz file to android studio app
public static void main(String[] args){
String input = "Some string blah blah blah";
System.out.println("XZ or LZMA2 library.....");
byte[] xzCompressed = XZ_LZMA2.compress(input);
System.out.println("Input length:" + input.length());
System.out.println("XZ Compressed Length: "+ xzCompressed.length);
String xzDecompressed = XZ_LZMA2.decompress(xzCompressed);
System.out.println("XZ Decompressed : "+ xzDecompressed);
}