Returns whether a URL download object can resume a download that was decoded with the specified MIME type.
- macOS 10.4+
The MIME type the caller wants to know about.
true if the URL download object can resume a download that was decoded with the specified MIME type,
The MIME type of a file, in conjunction with the value returned by the
download(_: delegate method, determines whether the
NSURLDownload class should decode or decompress the incoming data as it is received.
Some compression techniques, such as the
DEFLATE algorithm (
gzip) use symbol dictionaries that vary during the compression process, making it impractical to decompress only a portion of the data starting in the middle. For this reason, this method returns
false unless both of the following conditions are met:
The MIME type is of a type that the
NSURLDownloadclass knows how to decompress or decode.
The decoding can be safely resumed.
In practice, this method returns
true for MacBinary and BinHex, otherwise
If your app needs to be able to resume file downloads in
gzip format, your
download(_: method must return
false, and you must decode the resulting file yourself after you finish downloading it in its entirety.