MimeInfoCacheFile.this - multiple declarations

Function MimeInfoCacheFile.this

Read MIME Cache from file.

this (
  string fileName,
  IniLikeFile.ReadOptions readOptions = ReadOptions(cast(DuplicateGroupPolicy)cast(ubyte)0u, cast(DuplicateKeyPolicy)cast(ubyte)0u, cast(InvalidKeyPolicy)cast(ubyte)0u, cast(Flag)true)
) @trusted;

Throws

ErrnoException if file could not be opened. inilike.file.IniLikeReadException if error occured while reading the file or "MIME Cache" group is missing.

Function MimeInfoCacheFile.this

Constructs MimeInfoCacheFile with empty MIME Cache group.

this() @safe;

Example

auto micf = new MimeInfoCacheFile();
assert(micf.mimeCache() !is null);

Function MimeInfoCacheFile.this

Read MIME Cache from IniLikeReader, e.g. acquired from iniLikeFileReader or iniLikeStringReader.

this(IniLikeReader) (
  IniLikeReader reader,
  string fileName = null,
  IniLikeFile.ReadOptions readOptions = ReadOptions.init
);

Throws

inilike.file.IniLikeReadException if error occured while parsing or "MIME Cache" group is missing.