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; import java.nio.charset.StandardCharsets; public class Main { static Charset charset = StandardCharsets.UTF_8; /**// w ww .j ava2 s.c om * Gets the charset used by the write method. * @return Charset used by the read method, by default, UTF-8. */ public static Charset getCharset() { return charset; } }