public Charset getCharsetProperty ( final String name , final Charset defaultValue ) { final String prop = getStringProperty ( name ) ; try { return prop == null ? defaultValue : Charset . forName ( prop ) ; } catch ( UnsupportedCharsetException e ) { LowLevelLogUtil . logException ( "Unable to get Charset '" + name + "', using default " + defaultValue , e ) ; return defaultValue ; } }
Gets the named property as a Charset value .