package com.ether; import java.nio.charset.Charset; public class UTF8Charset { public static Charset getCharset() { return CHARSET; } public static String getEncoding() { return ENCODING; } private static final String ENCODING = "UTF-8"; private static final Charset CHARSET = Charset.forName( ENCODING ); }