Skip to content
Permalink
Browse files
ArchiveStreamFactory.createArchiveInputStream(String, InputStream,
String) supports the "APK" format (it's a JAR).
  • Loading branch information
garydgregory committed Feb 13, 2022
1 parent f2b68e9 commit 2949c1f7781a10fc5289162d059d43cd77065203
Showing 1 changed file with 2 additions and 3 deletions.
@@ -360,8 +360,7 @@ public void setEntryEncoding(final String entryEncoding) {
* read from a stream
* @throws IllegalArgumentException if the archiver name or stream is null
*/
public ArchiveInputStream createArchiveInputStream(final String archiverName, final InputStream in)
throws ArchiveException {
public ArchiveInputStream createArchiveInputStream(final String archiverName, final InputStream in) throws ArchiveException {
return createArchiveInputStream(archiverName, in, entryEncoding);
}

@@ -398,7 +397,7 @@ public ArchiveInputStream createArchiveInputStream(final String archiverName, fi
}
return new TarArchiveInputStream(in);
}
if (JAR.equalsIgnoreCase(archiverName)) {
if (JAR.equalsIgnoreCase(archiverName) || APK.equalsIgnoreCase(archiverName)) {
if (actualEncoding != null) {
return new JarArchiveInputStream(in, actualEncoding);
}

0 comments on commit 2949c1f

Please sign in to comment.