You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/02/13 15:50:05 UTC
[commons-compress] branch master updated: Add APK file extension constants: ArchiveStreamFactory.APK, APKM, APKS, XAPK.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push:
new 78f404e Add APK file extension constants: ArchiveStreamFactory.APK, APKM, APKS, XAPK.
78f404e is described below
commit 78f404e895906a5b8e055690430ab6a997ca5b3d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Feb 13 10:47:54 2022 -0500
Add APK file extension constants: ArchiveStreamFactory.APK, APKM, APKS,
XAPK.
---
src/changes/changes.xml | 3 ++
.../compress/archivers/ArchiveStreamFactory.java | 40 ++++++++++++++++++++++
2 files changed, 43 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 0d17514..aa78269 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -68,6 +68,9 @@ The <action> type attribute can be add,update,fix,remove.
<action issue="COMPRESS-602" type="add" dev="ggregory" due-to="Postelnicu George, Gary Gregory">
Migrate zip package to use NIO #236.
</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">
+ Add APK file extension constants: ArchiveStreamFactory.APK, APKM, APKS, XAPK.
+ </action>
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot">
Bump mockito-core from 3.11.1 to 4.2.0 #209, #224, #231, #235.
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 82d6afa..2d19aea 100644
--- a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
+++ b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
@@ -101,6 +101,46 @@ public class ArchiveStreamFactory implements ArchiveStreamProvider {
public static final ArchiveStreamFactory DEFAULT = new ArchiveStreamFactory();
/**
+ * Constant (value {@value}) used to identify the APK archive format.
+ * <p>
+ * APK file extensions are .apk, .xapk, .apks, .apkm
+ * </p>
+ *
+ * @since 1.22
+ */
+ public static final String APK = "apk";
+
+ /**
+ * Constant (value {@value}) used to identify the XAPK archive format.
+ * <p>
+ * APK file extensions are .apk, .xapk, .apks, .apkm
+ * </p>
+ *
+ * @since 1.22
+ */
+ public static final String XAPK = "xapk";
+
+ /**
+ * Constant (value {@value}) used to identify the APKS archive format.
+ * <p>
+ * APK file extensions are .apk, .xapk, .apks, .apkm
+ * </p>
+ *
+ * @since 1.22
+ */
+ public static final String APKS = "apks";
+
+ /**
+ * Constant (value {@value}) used to identify the APKM archive format.
+ * <p>
+ * APK file extensions are .apk, .xapk, .apks, .apkm
+ * </p>
+ *
+ * @since 1.22
+ */
+ public static final String APKM = "apkm";
+
+ /**
* Constant (value {@value}) used to identify the AR archive format.
* @since 1.1
*/