mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Not implemented Stream methods are expected to throw NotSupportedException #409
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @claunia on GitHub (Aug 24, 2020).
Hi,
As in
https://github.com/adamhathcock/sharpcompress/blob/master/src/SharpCompress/Compressors/LZMA/LZipStream.cs#L108
all other software expects that to throw a NotSupportedException as a normal condition to detect they cannot seek or get the size, however throwing a NotImplementedException makes other libraries (e.g. DotNetZip) not work properly.
E.g.:
fbad143e71/src/Zip.Shared/ZipEntry.Write.cs (L1510)@adamhathcock commented on GitHub (Aug 25, 2020):
Happy to change the exception if you don't mind submitting a PR to clean that exception (and possibly other locations)
@ds5678 commented on GitHub (Dec 23, 2022):
I think this has been already resolved.