MimeDetectorFromCache.this - multiple declarations

Function MimeDetectorFromCache.this

Constructor based on existing MIME cache objects.

this(Range) (
  Range mimeCaches
)
if (isInputRange!Range && is(ElementType!Range : const(MimeCache)));

Parameters

NameDescription
mimeCaches Range of mime.cache.MimeCache objects sorted in order of preference from the mort preferred to the least. All must be non-null.

Function MimeDetectorFromCache.this

Constructor based on MIME paths. It automatically load mime.cache files from given paths.

this(Range) (
  Range mimePaths
)
if (isInputRange!Range && is(ElementType!Range : string));

Parameters

NameDescription
mimePaths Range of paths to base mime/ directories in order from more preferable to less preferable.

Throws

FileException if some existing mime.cache could not be memory mapped. MimeCacheException if some existing mime.cache file is invalid.

See Also

mimePaths