public DataSource()

in freemarker-generator-base/src/main/java/org/apache/freemarker/generator/base/datasource/DataSource.java [126:144]


    public DataSource(
            String name,
            String group,
            URI uri,
            javax.activation.DataSource dataSource,
            String relativeFilePath,
            String contentType,
            Charset charset,
            Map<String, String> properties) {
        this.name = requireNonNull(name).trim();
        this.group = StringUtils.emptyToNull(group);
        this.uri = requireNonNull(uri);
        this.dataSource = requireNonNull(dataSource);
        this.relativeFilePath = relativeFilePath != null ? relativeFilePath : "";
        this.contentType = contentType;
        this.charset = charset;
        this.properties = properties != null ? new HashMap<>(properties) : new HashMap<>();
        this.closeables = new CloseableReaper();
    }