Here you can find the source of getDecoder(String charset)
public static CharsetDecoder getDecoder(String charset)
//package com.java2s; import java.nio.charset.Charset; import java.nio.charset.CharsetDecoder; public class Main { public static CharsetDecoder getDecoder(String charset) { return Charset.forName(charset).newDecoder(); }//from w ww. java2s . co m }