add another constructor overload without password
@@ -178,6 +178,23 @@ public SevenZFile(final SeekableByteChannel channel, String filename,
this(channel, filename, utf16Decode(password), false);
}
+ /**
+ * Reads a SeekableByteChannel as 7z archive
+ *
+ * <p>{@link
+ * org.apache.commons.compress.utils.SeekableInMemoryByteChannel}
+ * allows you to read from an in-memory archive.</p>
+ *
+ * @param channel the channel to read
+ * @param filename name of the archive - only used for error reporting
+ * @throws IOException if reading the archive fails
+ * @since 1.17
+ */
+ public SevenZFile(final SeekableByteChannel channel, String filename)
+ throws IOException {
+ this(channel, filename, null, false);
+ }
+
/**
* Reads a SeekableByteChannel as 7z archive
*
