/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


package fr.gouv.finances.cp.utils.xml.marshal;

import fr.gouv.finances.cp.utils.xml.marshal.escapers.DefaultCharacterEscaper;
import fr.gouv.finances.cp.utils.xml.marshal.escapers.ISO88591Escaper;
import fr.gouv.finances.cp.utils.xml.marshal.escapers.IdenticalEscaper;
import fr.gouv.finances.cp.utils.xml.marshal.escapers.UTF8Escaper;

/**
 *
 * @author chm
 */
public class CharacterEscaperFactory {
    
    public static CharacterEscaper getCharacterEscaper(String charset) {
//        if("ISO-8859-1".equals(charset)) {
//            return new ISO88591Escaper();
//        } else if("UTF-8".equals(charset)) {
//            return new UTF8Escaper();
//        } else
//            return new DefaultCharacterEscaper();
        return new IdenticalEscaper();
    }

}
