HomeSort by relevance Sort by last modified time
    Searched refs:Charset (Results 26 - 50 of 180) sorted by null

12 3 4 5 6 7 8

  /libcore/luni/src/main/java/java/nio/charset/
CharsetICU.java 10 package java.nio.charset;
14 final class CharsetICU extends Charset {
30 public boolean contains(Charset cs) {
  /frameworks/base/core/java/android/util/
CharsetUtils.java 22 import java.nio.charset.Charset;
23 import java.nio.charset.IllegalCharsetNameException;
24 import java.nio.charset.UnsupportedCharsetException;
32 * in its interpretation of Japanese charset names (used in DoCoMo,
38 * each vendor-specific charset. You may need to modify the C libraries
39 * like icu4c in order to let Android support an additional charset.
61 * Represents one-to-one mapping from a vendor name to a charset specific to the vendor.
126 * method merely calls {@code Charset.forName()} on a name
139 public static Charset charsetForVendor(String charsetName, String vendor
    [all...]
  /external/guava/guava/src/com/google/common/io/
Resources.java 29 import java.nio.charset.Charset;
70 * @param charset the character set used when reading the URL contents
74 URL url, Charset charset) {
75 return CharStreams.newReaderSupplier(newInputStreamSupplier(url), charset);
94 * @param charset the character set used when reading the URL
98 public static String toString(URL url, Charset charset) throws IOException {
99 return CharStreams.toString(newReaderSupplier(url, charset));
    [all...]
  /libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/
AbstractCharsetTestCase.java 18 package tests.api.java.nio.charset;
22 import java.nio.charset.Charset;
27 * Super class for concrete charset test suites.
31 // the canonical name of this charset
43 // charset instance
44 protected Charset testingCharset;
53 this.testingCharset = Charset.forName(this.canonicalName);
105 Charset c = Charset.forName(this.aliases[i])
    [all...]
UTFCharsetDecoderTest.java 17 package tests.api.java.nio.charset;
21 import java.nio.charset.Charset;
29 cs = Charset.forName("utf-8");
ISOCharsetEncoderTest.java 16 package tests.api.java.nio.charset;
20 import java.nio.charset.CharacterCodingException;
21 import java.nio.charset.Charset;
22 import java.nio.charset.CoderResult;
23 import java.nio.charset.CodingErrorAction;
24 import java.nio.charset.MalformedInputException;
25 import java.nio.charset.UnmappableCharacterException;
28 * test case specific activity of iso-8859-1 charset encoder
32 // charset for iso-8859-
    [all...]
UTF16BECharsetEncoderTest.java 17 package tests.api.java.nio.charset;
20 import java.nio.charset.CharacterCodingException;
21 import java.nio.charset.Charset;
28 // charset for utf-16be
29 private static final Charset CS = Charset.forName("utf-16be");
UTF16CharsetEncoderTest.java 17 package tests.api.java.nio.charset;
21 import java.nio.charset.CharacterCodingException;
22 import java.nio.charset.Charset;
23 import java.nio.charset.CharsetDecoder;
30 // charset for utf-16
31 // charset for utf-16be
32 private static final Charset CS = Charset.forName("utf-16");
UTF16LECharsetEncoderTest.java 17 package tests.api.java.nio.charset;
20 import java.nio.charset.CharacterCodingException;
21 import java.nio.charset.Charset;
28 // charset for utf-16le
29 private static final Charset CS = Charset.forName("utf-16le");
  /external/okhttp/src/main/java/com/squareup/okhttp/
MediaType.java 18 import java.nio.charset.Charset;
37 private final String charset; field in class:MediaType
39 private MediaType(String mediaType, String type, String subtype, String charset) {
43 this.charset = charset;
56 String charset = null; local
63 if (name == null || !name.equalsIgnoreCase("charset")) continue;
64 if (charset != null) throw new IllegalArgumentException("Multiple charsets: " + string);
65 charset = parameter.group(2) != nul
93 public Charset charset() { method in class:MediaType
101 public Charset charset(Charset defaultValue) { method in class:MediaType
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/
CharsetDecoderTest.java 17 package org.apache.harmony.nio_char.tests.java.nio.charset;
23 import java.nio.charset.CharacterCodingException;
24 import java.nio.charset.Charset;
25 import java.nio.charset.CharsetDecoder;
26 import java.nio.charset.CharsetEncoder;
27 import java.nio.charset.CoderMalfunctionError;
28 import java.nio.charset.CoderResult;
29 import java.nio.charset.CodingErrorAction;
30 import java.nio.charset.MalformedInputException
    [all...]
  /external/guava/guava/src/com/google/common/hash/
AbstractHasher.java 19 import java.nio.charset.Charset;
24 * {@link #putString(CharSequence, Charset)} as prescribed by {@link Hasher}.
46 @Override public Hasher putString(CharSequence charSequence, Charset charset) {
48 return putBytes(charSequence.toString().getBytes(charset.name()));
Hasher.java 19 import java.nio.charset.Charset;
55 * Equivalent to {@code putBytes(charSequence.toString().getBytes(charset)}.
57 @Override Hasher putString(CharSequence charSequence, Charset charset);
Sink.java 19 import java.nio.charset.Charset;
99 * Puts a string into this sink using the given charset.
101 Sink putString(CharSequence charSequence, Charset charset);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
StringTest.java 22 import java.nio.charset.Charset;
601 * @tests {@link java.lang.String#String(byte[], int, int, Charset)}
607 new String(new byte[8], 0, 4, Charset.defaultCharset());
608 new String(new byte[8], 8, 0, Charset.defaultCharset());
609 new String(new byte[0], 0, 0, Charset.defaultCharset());
612 new String(new byte[8], 0, 9, Charset.defaultCharset());
618 new String(new byte[8], 9, 0, Charset.defaultCharset());
624 new String(new byte[8], -1, 0, Charset.defaultCharset());
630 new String(new byte[8], 9, -1, Charset.defaultCharset())
    [all...]
  /frameworks/base/core/java/android/hardware/camera2/impl/
MetadataMarshalString.java 19 import java.nio.charset.Charset;
23 private static final Charset UTF8_CHARSET = Charset.forName("UTF-8");
  /libcore/luni/src/test/java/libcore/java/nio/charset/
CharsetEncoderTest.java 17 package libcore.java.nio.charset;
21 import java.nio.charset.Charset;
22 import java.nio.charset.CharsetEncoder;
23 import java.nio.charset.CoderResult;
24 import java.nio.charset.CodingErrorAction;
30 Charset ascii = Charset.forName("US-ASCII");
40 private void assertReplacementBytesForEncoder(String charset, byte[] bytes) {
41 byte[] result = Charset.forName(charset).newEncoder().replacement()
    [all...]
OldCharsetEncoderDecoderBufferTest.java 17 package libcore.java.nio.charset;
21 import java.nio.charset.Charset;
22 import java.nio.charset.CharsetDecoder;
23 import java.nio.charset.CharsetEncoder;
38 CharsetDecoder decoder = Charset.forName("UTF-8").newDecoder();
70 CharsetDecoder decoder = Charset.forName("UTF-8").newDecoder();
96 CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder();
128 CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder();
CharsetDecoderTest.java 17 package libcore.java.nio.charset;
21 import java.nio.charset.CharacterCodingException;
22 import java.nio.charset.Charset;
23 import java.nio.charset.CharsetDecoder;
24 import java.nio.charset.CharsetEncoder;
25 import java.nio.charset.CoderResult;
26 import java.nio.charset.CodingErrorAction;
31 CharsetDecoder d = Charset.forName("UTF-16").newDecoder();
41 CharsetDecoder decoder = Charset.forName("UTF-16").newDecoder()
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/email/test/
test_email_codecs.py 9 from email.charset import Charset
26 j = Charset("euc-jp")
27 g = Charset("iso-8859-1")
test_email_codecs_renamed.py 9 from email.charset import Charset
26 j = Charset("euc-jp")
27 g = Charset("iso-8859-1")
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/email/test/
test_email_codecs.py 9 from email.charset import Charset
26 j = Charset("euc-jp")
27 g = Charset("iso-8859-1")
test_email_codecs_renamed.py 9 from email.charset import Charset
26 j = Charset("euc-jp")
27 g = Charset("iso-8859-1")
  /packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
FileWriterWithEncoding.java 25 import java.nio.charset.Charset;
26 import java.nio.charset.CharsetEncoder;
40 * The encoding must be specified using either the name of the {@link Charset},
41 * the {@link Charset}, or a {@link CharsetEncoder}. If the default encoding
90 public FileWriterWithEncoding(String filename, Charset encoding) throws IOException {
103 public FileWriterWithEncoding(String filename, Charset encoding, boolean append) throws IOException {
166 public FileWriterWithEncoding(File file, Charset encoding) throws IOException {
179 public FileWriterWithEncoding(File file, Charset encoding, boolean append) throws IOException {
216 * @param encoding the encoding to use - may be Charset, CharsetEncoder or String
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/
StringTest.java 24 import java.nio.charset.Charset;
25 import java.nio.charset.CharsetDecoder;
26 import java.nio.charset.CharsetEncoder;
27 import java.nio.charset.CoderResult;
28 import java.nio.charset.CodingErrorAction;
42 public EvilCharsetDecoder(Charset cs) {
64 public EvilCharsetEncoder(Charset cs) {
77 private static final Charset EVIL_CHARSET = new Charset("evil", null)
    [all...]

Completed in 395 milliseconds

12 3 4 5 6 7 8