1
package com.thaiopensource.relaxng.translate.util;
3
import com.thaiopensource.xml.util.EncodingMap;
5
import java.io.UnsupportedEncodingException;
7
public abstract class EncodingParam extends AbstractParam {
8
public void set(String value) throws InvalidParamValueException {
10
"x".getBytes(EncodingMap.getJavaName(value));
12
catch (UnsupportedEncodingException e) {
13
throw new ParamProcessor.LocalizedInvalidValueException("unsupported_encoding");
18
protected abstract void setEncoding(String encoding) throws InvalidParamValueException;