Searched refs:charsetName (Results 1 – 5 of 5) sorted by relevance
1139 public static boolean isEncodingSupported(String charsetName) { in isEncodingSupported() argument1140 return encodingSupported.contains(charsetName.toLowerCase(Locale.US)); in isEncodingSupported()1154 public static boolean isDecodingSupported(String charsetName) { in isDecodingSupported() argument1155 return decodingSupported.contains(charsetName.toLowerCase(Locale.US)); in isDecodingSupported()1165 public static String toMimeCharset(String charsetName) { in toMimeCharset() argument1166 Charset c = charsetMap.get(charsetName.toLowerCase(Locale.US)); in toMimeCharset()1184 public static String toJavaCharset(String charsetName) { in toJavaCharset() argument1185 Charset c = charsetMap.get(charsetName.toLowerCase(Locale.US)); in toJavaCharset()1192 public static java.nio.charset.Charset getCharset(String charsetName) { in getCharset() argument1196 if(charsetName == null) charsetName = defaultCharset; in getCharset()[all …]
69 public Charset charsetForName(String charsetName) { in charsetForName() argument70 charsetName = charsetName.toUpperCase(); in charsetForName()73 if (charset.name().equals(charsetName)) in charsetForName()78 if (charset.aliases().contains(charsetName)) in charsetForName()
539 String charsetName = in loadConfiguration() local542 if (!TextUtils.isEmpty(charsetName)) { in loadConfiguration()544 mMessageEncoding = Charset.forName(charsetName); in loadConfiguration()547 LogUtil.e("CallSubjectDialog.loadConfiguration", "invalid charset: " + charsetName); in loadConfiguration()
607 String charsetName = phoneAccountExtras.getString( in loadConfiguration() local610 if (!TextUtils.isEmpty(charsetName)) { in loadConfiguration()612 mMessageEncoding = Charset.forName(charsetName); in loadConfiguration()615 Log.w(TAG, "Invalid charset: " + charsetName); in loadConfiguration()
1452 public static String bytesToString(final byte[] bytes, final String charsetName) { in bytesToString() argument1457 return new String(bytes, charsetName); in bytesToString()1471 public static byte[] stringToBytes(final String string, final String charsetName) { in stringToBytes() argument1476 return string.getBytes(charsetName); in stringToBytes()