Home
last modified time | relevance | path

Searched refs:charsetName (Results 1 – 25 of 64) sorted by relevance

123

/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java333 private static void cache(String charsetName, Charset cs) { in cache() argument
348 cache2.put(charsetName, cs); in cache()
351 cache1 = new AbstractMap.SimpleImmutableEntry<>(charsetName, cs); in cache()
405 private static Charset lookupViaProviders(final String charsetName) { in lookupViaProviders() argument
430 Charset cs = cp.charsetForName(charsetName); in lookupViaProviders()
486 private static Charset lookup(String charsetName) {
487 if (charsetName == null)
492 if (cached != null && charsetName.equals(cached.getKey()))
494 return lookup2(charsetName);
497 private static Charset lookup2(String charsetName) {
[all …]
DUnsupportedCharsetException.java50 private String charsetName; field in UnsupportedCharsetException
58 public UnsupportedCharsetException(String charsetName) { in UnsupportedCharsetException() argument
59 super(String.valueOf(charsetName)); in UnsupportedCharsetException()
60 this.charsetName = charsetName; in UnsupportedCharsetException()
69 return charsetName; in getCharsetName()
DIllegalCharsetNameException.java50 private String charsetName; field in IllegalCharsetNameException
58 public IllegalCharsetNameException(String charsetName) { in IllegalCharsetNameException() argument
59 super(String.valueOf(charsetName)); in IllegalCharsetNameException()
60 this.charsetName = charsetName; in IllegalCharsetNameException()
69 return charsetName; in getCharsetName()
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharset.java46 private static void cache(java.lang.String charsetName, java.nio.charset.Charset cs) { in cache() argument
54 private static java.nio.charset.Charset lookupViaProviders(java.lang.String charsetName) { in lookupViaProviders() argument
58 private static java.nio.charset.Charset lookup(java.lang.String charsetName) { in lookup() argument
62 private static java.nio.charset.Charset lookup2(java.lang.String charsetName) { in lookup2() argument
66 public static boolean isSupported(java.lang.String charsetName) { in isSupported() argument
70 public static java.nio.charset.Charset forName(java.lang.String charsetName) { in forName() argument
74 public static java.nio.charset.Charset forNameUEE(java.lang.String charsetName) in forNameUEE() argument
/libcore/ojluni/src/main/java/java/io/
DInputStreamReader.java94 public InputStreamReader(InputStream in, String charsetName) in InputStreamReader() argument
98 if (charsetName == null) in InputStreamReader()
100 sd = StreamDecoder.forInputStreamReader(in, this, charsetName); in InputStreamReader()
DOutputStreamWriter.java93 public OutputStreamWriter(OutputStream out, String charsetName) in OutputStreamWriter() argument
97 if (charsetName == null) in OutputStreamWriter()
99 se = StreamEncoder.forOutputStreamWriter(out, this, charsetName); in OutputStreamWriter()
DByteArrayOutputStream.java275 public synchronized String toString(String charsetName) in toString() argument
278 return new String(buf, 0, count, charsetName); in toString()
/libcore/benchmarks/src/benchmarks/regression/
DCharsetForNameBenchmark.java37 private String charsetName; field in CharsetForNameBenchmark
41 Charset.forName(charsetName); in timeCharsetForName()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DSettableCharsetProvider.java50 public Charset charsetForName(String charsetName) { in charsetForName() argument
52 return delegate.charsetForName(charsetName); in charsetForName()
DOldCharset_AbstractTest.java38 static String charsetName; field in OldCharset_AbstractTest
66 charset = charset.forName(charsetName); in setUp()
78 assertEquals("Name of charset must match!", charsetName, charset.name()); in test_nameMatch()
85 charsetName, charset.name(), getClass().getName()); in test_dumpEncodableChars()
112 charsetName, charset.name(), getClass().getName()); in test_dumpEncoded()
DOldCharset_SingleByte_windows_1250.java21 charsetName = "windows-1250"; in setUp()
DOldCharset_SingleByte_windows_1251.java21 charsetName = "windows-1251"; in setUp()
DOldCharset_SingleByte_ISO_8859_11.java24 charsetName = "x-iso-8859-11"; in setUp()
DOldCharset_SingleByte_ISO_8859_7.java21 charsetName = "ISO-8859-7"; in setUp()
DOldCharset_SingleByte_KOI8_R.java21 charsetName = "KOI8-R"; in setUp()
DOldCharset_SingleByte_ISO_8859_6.java21 charsetName = "ISO-8859-6"; in setUp()
DOldCharset_SingleByte_ISO_8859_4.java21 charsetName = "ISO-8859-4"; in setUp()
DOldCharset_SingleByte_ISO_8859_9.java21 charsetName = "ISO-8859-9"; in setUp()
DOldCharset_SingleByte_x_IBM874.java24 charsetName = "TIS-620"; // ICU name "TIS-620", wanted Android name "CP874" in setUp()
DOldCharset_SingleByte_windows_1255.java21 charsetName = "windows-1255"; in setUp()
DOldCharset_SingleByte_ISO_8859_13.java21 charsetName = "ISO-8859-13"; in setUp()
DOldCharset_SingleByte_ISO_8859_2.java21 charsetName = "ISO-8859-2"; in setUp()
DOldCharset_SingleByte_ISO_8859_8.java21 charsetName = "ISO-8859-8"; in setUp()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetTest.java47 for (String charsetName : Charset.availableCharsets().keySet()) { in test_allAvailableCharsets()
48 Charset cs = Charset.forName(charsetName); in test_allAvailableCharsets()
866 public Charset charsetForName(String charsetName) { in charsetForName() argument
867 if (Charset.isSupported(charsetName)) { in charsetForName()
868 return Charset.forName(charsetName); in charsetForName()
876 public Charset charsetForName(String charsetName) { in charsetForName() argument
877 if ("MockCharset00".equalsIgnoreCase(charsetName) || in charsetForName()
878 "MockCharset01".equalsIgnoreCase(charsetName) || in charsetForName()
879 "MockCharset02".equalsIgnoreCase(charsetName)) { in charsetForName()
881 } else if ("MockCharset10".equalsIgnoreCase(charsetName) || in charsetForName()
[all …]
/libcore/libart/src/main/java/java/lang/
DStringFactory.java74 …ring newStringFromBytes(byte[] data, int offset, int byteCount, String charsetName) throws Unsuppo… in newStringFromBytes() argument
75 return newStringFromBytes(data, offset, byteCount, Charset.forNameUEE(charsetName)); in newStringFromBytes()
78 …public static String newStringFromBytes(byte[] data, String charsetName) throws UnsupportedEncodin… in newStringFromBytes() argument
79 return newStringFromBytes(data, 0, data.length, Charset.forNameUEE(charsetName)); in newStringFromBytes()

123