Here you can find the source of getDefaultCharsetName()
private static String getDefaultCharsetName()
//package com.java2s; //License from project: Apache License import java.nio.charset.Charset; public class Main { private static String getDefaultCharsetName() { return Charset.defaultCharset().name(); }/*from w w w . j a v a2 s . c om*/ }