Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.1
-
None
Description
The documentation found at http://commons.apache.org/compress/examples.html should explain the difference between Archive and Compressor classes. Currently the only example for making a "factory guess the input format for a given stream" uses ArchiveStreamFactory but in actuality CompressorStreamFactory.createCompressorInputStream() will do the same for file formats like gzip. Without further clarification it sounds like ArchiveStreamFactory is only used for decompressing and CompressorStreamFactory is only used for compressing.
- Please clarify the difference between Archive and Compressor classes
- Please mention that CompressorStreamFactory.createCompressorInputStream() can also be used to auto-detect the input format of a stream.