All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.autores.handling.CfgEncoding Maven / Gradle / Ivy

The newest version!
// Copyright 2023 https://github.com/autores-uk/autores/blob/main/LICENSE.txt
// SPDX-License-Identifier: Apache-2.0
package uk.autores.handling;

import java.nio.charset.Charset;

/**
 * "encoding": encoding of consumed text files.
 * Values are validated against the keys in {@link Charset#availableCharsets()}.
 */
public final class CfgEncoding {

    /** Key */
    public static final String ENCODING = "encoding";

    /**
     * Config definition.
     * @see ConfigDef
     * @see ResourceFiles#config()
     */
    public static final ConfigDef DEF = new ConfigDef(ENCODING, Charset.availableCharsets()::containsKey);

    private CfgEncoding() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy