srikanth-lingala / zip4j

A Java library for zip files and streams
Apache License 2.0
2.06k stars 310 forks source link

add constructor for streams please #480

Closed Tedgh closed 1 year ago

Tedgh commented 1 year ago

I have a project with samba files... I found no way to use this nice lib because of the File Constructor only

srikanth-lingala commented 1 year ago

ZipFile api, as the name suggests is for use with files. When using streams, you have to use zip4j's ZipInputStream/ZipOutputStream. I cannot merge these two, i.e., I cannot make ZipFile deal with streams, because as mentioned earlier, ZipFile deals with files.