In brief
lzma supports .xz, the older .lzma format and raw compressed streams. These representations are not interchangeable without the appropriate settings.
Useful to know
lzma supports .xz, the older .lzma format and raw compressed streams. These representations are not interchangeable without the appropriate settings. [1]
Specify the recipient’s expected format. For large inputs, consider streaming interfaces and memory limits. Sharing an LZMAFile across threads requires synchronization; a file-like interface does not automatically promise safe concurrent access.
Sources
For further detail and to check the information: