0

Is there a way to open XZ compressed files with Apache Commons VFS? It is not currently listed under the supported filesystems but I would imagine someone has tackled writing the necessary code already.

asieira
  • 3,513
  • 3
  • 23
  • 23
  • http://stackoverflow.com/questions/22421805/how-to-decompress-an-xz-file-faster-in-java – getbuckts Feb 11 '16 at 00:08
  • My question was specific to using XZ files within the Apache Commons VFS framework, whereas the linked question refers to opening them directly. – asieira Feb 11 '16 at 00:14
  • Possible duplicate of [How to decompress an XZ file faster in Java?](https://stackoverflow.com/questions/22421805/how-to-decompress-an-xz-file-faster-in-java) – Star Nov 08 '17 at 16:49

1 Answers1

0

So turns out it was simple enough to do. I ended up creating an open source project that adapted the internal Apache Commons VFS support for gzip and bzip2 and did the same for xz: https://github.com/asieira/vfs2-xz

All you need to do is include the JAR file in the CLASSPATH and URIs starting with xz: now work.

asieira
  • 3,513
  • 3
  • 23
  • 23