Here you can find the source of getCharset()
public static Charset getCharset()
//package com.java2s; //License from project: Open Source License import java.nio.charset.Charset; public class Main { private static Charset _charset = Charset.defaultCharset(); public static Charset getCharset() { return _charset; }//from w ww .j a v a 2s . c o m }