public static Validator validCharset ( String ... charsets ) { if ( null == charsets || charsets . length == 0 ) { return new ValidCharset ( ) ; } else { return new ValidCharset ( charsets ) ; } }
Method will return a validator that will ensure that a String or List contains a charset that is supported by the system .