Beispiel #1
0
 /**
  * Checks if the specified encoding is supported.
  *
  * @param encoding encoding
  * @return result of check
  */
 public static boolean supported(final String encoding) {
   try {
     return Charset.isSupported(encoding);
   } catch (final IllegalArgumentException ex) {
     return false;
   }
 }