Here you can find the source of getCharSet(String charset)
public static Charset getCharSet(String charset)
//package com.java2s; //License from project: Open Source License import java.nio.charset.Charset; public class Main { public static Charset getCharSet(String charset) { return Charset.forName(charset); }//from w ww . ja va2 s .c om }