public Koll3ctions(KConfig cfg) throws UnsupportedEncodingException {
try {
kHash = new KHash(cfg.getStr(ALGORITHM), cfg.getStr(CHARSET), cfg.getStr(PATH), cfg.getInt(CACHE_SIZE), cfg.getBool(DEBUG_MODE));
docFilter = new DocFilter(cfg.getStr(FILE_TYPES));
lastAccess = System.currentTimeMillis();
kName = new KName(cfg.getStr(COLNAME_POSTFIX), cfg.getBool(LATIN_ALPHABET));
this.cfg = cfg;
} catch (NoSuchAlgorithmException e) {
console.println(String.format(Dictionary.getString("Koll3ctions.error.algorithmNotFound", cfg.getStr(LANGUAGE)), cfg.getStr(ALGORITHM)));
System.exit(0);
}