Repository: commons-compress Updated Branches: refs/heads/master c7c2fe4ee -> fa4f029fb
Formatting. Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/fa4f029f Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/fa4f029f Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/fa4f029f Branch: refs/heads/master Commit: fa4f029fb82a98aa074914a6c936b51914f50e04 Parents: c7c2fe4 Author: Gary Gregory <ggreg...@apache.org> Authored: Thu Dec 8 19:41:44 2016 -0800 Committer: Gary Gregory <ggreg...@apache.org> Committed: Thu Dec 8 19:41:44 2016 -0800 ---------------------------------------------------------------------- .../commons/compress/archivers/ArchiveStreamFactory.java | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-compress/blob/fa4f029f/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java index c7fee03..6abc91e 100644 --- a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java +++ b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java @@ -95,38 +95,45 @@ public class ArchiveStreamFactory implements ArchiveStreamProvider { * @since 1.1 */ public static final String AR = "ar"; + /** * Constant (value {@value}) used to identify the ARJ archive format. * Not supported as an output stream type. * @since 1.6 */ public static final String ARJ = "arj"; + /** * Constant (value {@value}) used to identify the CPIO archive format. * @since 1.1 */ public static final String CPIO = "cpio"; + /** * Constant (value {@value}) used to identify the Unix DUMP archive format. * Not supported as an output stream type. * @since 1.3 */ public static final String DUMP = "dump"; + /** * Constant (value {@value}) used to identify the JAR archive format. * @since 1.1 */ public static final String JAR = "jar"; + /** * Constant used to identify the TAR archive format. * @since 1.1 */ public static final String TAR = "tar"; + /** * Constant (value {@value}) used to identify the ZIP archive format. * @since 1.1 */ public static final String ZIP = "zip"; + /** * Constant (value {@value}) used to identify the 7z archive format. * @since 1.8 @@ -157,6 +164,7 @@ public class ArchiveStreamFactory implements ArchiveStreamProvider { map.put(toKey(name), provider); } } + private static Iterator<ArchiveStreamProvider> serviceLoaderIterator() { return new ServiceLoaderIterator<>(ArchiveStreamProvider.class); }