@Test public void testCharsetLookupFailure() { Charset c1 = CharsetUtil.lookup("whatever"); Assert.assertNull(c1); }
public static Charset lookup(final String name) { if (name == null) { return null; } try { return Charset.forName(name); } catch (IllegalCharsetNameException ex) { return null; } catch (UnsupportedCharsetException ex) { return null; } }
CharsetUtil { public static Charset lookup(final String name) { if (name == null) { return null; } try { return Charset.forName(name); } catch (IllegalCharsetNameException ex) { return null; } catch (UnsupportedCharsetException ex) { return null; } } }
CharsetUtil { public static Charset lookup(final String name) { if (name == null) { return null; } try { return Charset.forName(name); } catch (IllegalCharsetNameException ex) { return null; } catch (UnsupportedCharsetException ex) { return null; } }  }
CharsetUtil { public static Charset lookup(final String name) { if (name == null) { return null; } try { return Charset.forName(name); } catch (IllegalCharsetNameException ex) { return null; } catch (UnsupportedCharsetException ex) { return null; } }  static boolean isASCII(char ch); static boolean isASCII(final String s); static boolean isWhitespace(char ch); static boolean isWhitespace(final String s); static Charset lookup(final String name); }
CharsetUtil { public static Charset lookup(final String name) { if (name == null) { return null; } try { return Charset.forName(name); } catch (IllegalCharsetNameException ex) { return null; } catch (UnsupportedCharsetException ex) { return null; } }  static boolean isASCII(char ch); static boolean isASCII(final String s); static boolean isWhitespace(char ch); static boolean isWhitespace(final String s); static Charset lookup(final String name); static final String CRLF; static final int CR; static final int LF; static final int SP; static final int HT; }