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

fr.sii.ogham.sms.builder.cloudhopper.StandardEncodingHelper Maven / Gradle / Ivy

The newest version!
package fr.sii.ogham.sms.builder.cloudhopper;

import fr.sii.ogham.core.builder.configuration.ConfigurationValueBuilderHelper;
import fr.sii.ogham.core.builder.context.BuildContext;
import fr.sii.ogham.sms.sender.impl.cloudhopper.encoder.NamedCharset;

/**
 * Helper class that extends {@link ConfigurationValueBuilderHelper} to track
 * the associated charset name.
 * 
 * @author Aurélien Baudet
 *
 */
public class StandardEncodingHelper extends ConfigurationValueBuilderHelper {
	private final String charsetName;

	public StandardEncodingHelper(EncoderBuilder parent, String charsetName, BuildContext buildContext) {
		super(parent, Integer.class, buildContext);
		this.charsetName = charsetName;
	}

	public NamedCharset getCharset() {
		return NamedCharset.from(charsetName);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy