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

com.legstar.base.context.AbstractCobolContext Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package com.legstar.base.context;

import java.nio.charset.Charset;

public abstract class AbstractCobolContext implements CobolContext {

    private final String hostCharsetName;

    public AbstractCobolContext(String hostCharsetName) {
        if (!Charset.isSupported(hostCharsetName)) {
            throw new IllegalArgumentException("The charset name "
                    + hostCharsetName
                    + " is not supported by your java environment."
                    + " You might miss lib/charsets.jar in your jre.");
        }
        this.hostCharsetName = hostCharsetName;
    }

    public String getHostCharsetName() {
        return hostCharsetName;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy