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

1 23 4 5 6 7 8

  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
InputStreamReaderTest.java 29 import java.nio.charset.Charset;
30 import java.nio.charset.CharsetDecoder;
31 import java.nio.charset.CodingErrorAction;
32 import java.nio.charset.MalformedInputException;
185 Charset cs = Charset.forName("utf-8");
186 assertEquals(cs, Charset.forName(reader.getEncoding()));
243 assertEquals(Charset.forName(reader2.getEncoding()), Charset
    [all...]
OutputStreamWriterTest.java 30 import java.nio.charset.Charset;
31 import java.nio.charset.CharsetEncoder;
343 assertEquals(Charset.forName("ascii"), Charset.forName(writer2
352 Charset cs = Charset.forName("ascii");
360 writer = new OutputStreamWriter(out, (Charset) null);
366 assertEquals(cs, Charset.forName(writer2.getEncoding()));
375 Charset cs = Charset.forName("ascii")
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
NdefPushSenderActivity.java 30 import java.nio.charset.Charset;
60 .getBytes(Charset.forName("US-ASCII"));
62 byte[] payload = "CTS Verifier NDEF Push Tag".getBytes(Charset.forName("US-ASCII"));
  /external/chromium_org/third_party/WebKit/Source/core/html/parser/
HTMLMetaCharsetParser.h 64 Charset,
  /external/guava/guava/src/com/google/common/io/
Files.java 42 import java.nio.charset.Charset;
69 * @param charset the character set used when writing the file
72 public static BufferedReader newReader(File file, Charset charset)
75 new InputStreamReader(new FileInputStream(file), charset));
83 * @param charset the character set used when writing the file
86 public static BufferedWriter newWriter(File file, Charset charset)
89 new OutputStreamWriter(new FileOutputStream(file), charset));
    [all...]
  /external/okhttp/src/main/java/com/squareup/okhttp/internal/
StrictLineReader.java 25 import java.nio.charset.Charset;
42 * We currently check in constructor that the charset is one of US-ASCII, UTF-8 and ISO-8859-1.
43 * The default charset is US_ASCII.
50 private final Charset charset; field in class:StrictLineReader
63 * Constructs a new {@code LineReader} with the specified charset and the default capacity.
66 * @param charset the charset used to decode data. Only US-ASCII, UTF-8 and ISO-8859-1 are
68 * @throws NullPointerException if {@code in} or {@code charset} is null
    [all...]
Util.java 31 import java.nio.charset.Charset;
43 /** A cheap and type-safe constant for the ISO-8859-1 Charset. */
44 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
46 /** A cheap and type-safe constant for the US-ASCII Charset. */
47 public static final Charset US_ASCII = Charset.forName("US-ASCII");
49 /** A cheap and type-safe constant for the UTF-8 Charset. */
50 public static final Charset UTF_8 = Charset.forName("UTF-8")
    [all...]
  /libcore/luni/src/main/java/libcore/io/
StrictLineReader.java 24 import java.nio.charset.Charset;
25 import java.nio.charset.StandardCharsets;
42 * We currently check in constructor that the charset is one of US-ASCII, UTF-8 and ISO-8859-1.
43 * The default charset is US_ASCII.
50 private final Charset charset; field in class:StrictLineReader
63 * Constructs a new {@code StrictLineReader} with the default capacity and charset.
73 * Constructs a new {@code LineReader} with the specified capacity and the default charset.
85 * Constructs a new {@code LineReader} with the specified charset and the default capacity
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
OldAndroidLocaleTest.java 19 import java.nio.charset.Charset;
158 assertTrue("Charset " + encoding + " must be supported", Charset.isSupported(encoding));
160 Charset cs = Charset.forName(encoding);
  /frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
UnsafeByteSequence.java 19 import java.nio.charset.Charset;
78 public String toString(Charset cs) {
  /libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/
UTF16CharsetDecoderTest.java 17 package tests.api.java.nio.charset;
22 import java.nio.charset.CharacterCodingException;
23 import java.nio.charset.Charset;
24 import java.nio.charset.CoderResult;
25 import java.nio.charset.CodingErrorAction;
35 cs = Charset.forName("utf-16");
  /libcore/luni/src/main/java/libcore/icu/
NativeConverter.java 12 import java.nio.charset.Charset;
13 import java.nio.charset.CharsetDecoder;
14 import java.nio.charset.CharsetEncoder;
15 import java.nio.charset.CodingErrorAction;
40 public static native Charset charsetForName(String charsetName);
  /libcore/luni/src/test/java/libcore/java/io/
OldOutputStreamWriterTest.java 26 import java.nio.charset.Charset;
27 import java.nio.charset.CharsetEncoder;
74 Charset.defaultCharset(),
75 Charset.forName(writer.getEncoding()));
118 Charset.forName("8859_1"),
119 Charset.forName(osw.getEncoding()));
126 Charset cs = Charset.forName("ascii");
136 writer = new OutputStreamWriter(out, (Charset) null)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
NdefTagTester.java 30 import java.nio.charset.Charset;
87 new String(record.getType(), Charset.forName("US-ASCII")),
88 new String(record.getPayload(), Charset.forName("US-ASCII")));
100 byte[] mimeBytes = MIME_TYPE.getBytes(Charset.forName("US-ASCII"));
103 byte[] payload = PAYLOAD.getBytes(Charset.forName("US-ASCII"));
  /libcore/luni/src/test/java/libcore/java/nio/charset/
Charset_TestGenerator.java 16 package libcore.java.nio.charset;
20 import java.nio.charset.CharacterCodingException;
21 import java.nio.charset.Charset;
22 import java.nio.charset.CharsetDecoder;
23 import java.nio.charset.CharsetEncoder;
24 import java.nio.charset.CodingErrorAction;
27 * Super class for concrete charset test suites.
31 Charset charset; field in class:Charset_TestGenerator
    [all...]
  /packages/apps/Tag/src/com/android/apps/tag/record/
TextRecord.java 33 import java.nio.charset.Charset;
137 byte[] langBytes = locale.getLanguage().getBytes(Charset.forName("US-ASCII"));
139 Charset utfEncoding = encodeInUtf8 ? Charset.forName("UTF-8") : Charset.forName("UTF-16");
  /packages/apps/Exchange/src/com/android/exchange/utility/
UriCodec.java 22 import java.nio.charset.Charset;
25 public static final Charset UTF_8 = Charset.forName("UTF-8");
113 private void appendEncoded(StringBuilder builder, String s, Charset charset,
128 appendHex(builder, s.substring(escapeStart, i), charset);
145 appendHex(builder, s.substring(escapeStart, s.length()), charset);
149 public final String encode(String s, Charset charset) {
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
PropertyResourceBundleTest.java 28 import java.nio.charset.Charset;
50 assertEquals("iso-8859-1", prb.getString("charset"));
56 assertEquals("UTF-8", prb.getString("charset"));
73 Charset charset = Charset.forName("ISO-8859-1"); local
75 CharBuffer cbuffer = charset.decode(ByteBuffer.wrap(content
85 charset = Charset.forName("UTF-8")
    [all...]
  /libcore/luni/src/main/java/java/io/
InputStreamReader.java 22 import java.nio.charset.Charset;
23 import java.nio.charset.CharsetDecoder;
24 import java.nio.charset.CoderResult;
25 import java.nio.charset.CodingErrorAction;
26 import java.nio.charset.MalformedInputException;
27 import java.nio.charset.UnmappableCharacterException;
59 this(in, Charset.defaultCharset());
85 decoder = Charset.forName(charsetName).newDecoder().onMalformedInput(
114 * Charset {@code charset}
    [all...]
OutputStreamWriter.java 22 import java.nio.charset.Charset;
23 import java.nio.charset.CharsetEncoder;
24 import java.nio.charset.CoderResult;
25 import java.nio.charset.CodingErrorAction;
55 this(out, Charset.defaultCharset());
81 encoder = Charset.forName(charsetName).newEncoder();
97 * the {@code Charset} that specifies the character encoding.
99 public OutputStreamWriter(OutputStream out, Charset cs) {
119 charsetEncoder.charset();
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/email/
header.py 20 from email.charset import Charset
30 USASCII = Charset('us-ascii')
31 UTF8 = Charset('utf-8')
33 # Match encoded-word strings in the form =?charset?q?Hello_World?=
36 (?P<charset>[^?]*?) # non-greedy up to the next ? is the charset
64 """Decode a message header value without converting charset.
66 Returns a list of (decoded_string, charset) pairs containing each of the
67 decoded parts of the header. Charset is None for non-encoded parts of th
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/email/
header.py 20 from email.charset import Charset
30 USASCII = Charset('us-ascii')
31 UTF8 = Charset('utf-8')
33 # Match encoded-word strings in the form =?charset?q?Hello_World?=
36 (?P<charset>[^?]*?) # non-greedy up to the next ? is the charset
64 """Decode a message header value without converting charset.
66 Returns a list of (decoded_string, charset) pairs containing each of the
67 decoded parts of the header. Charset is None for non-encoded parts of th
    [all...]
  /libcore/luni/src/main/java/java/nio/charset/
CharsetEncoder.java 17 package java.nio.charset;
53 * signifies that the input is legal but cannot be mapped to a byte sequence (because the charset
63 * <p>The default replacement bytes depend on the charset but can be overridden using the
67 * encoding process for all charsets. Encoders for a specific charset should
75 * @see java.nio.charset.Charset
76 * @see java.nio.charset.CharsetDecoder
84 private final Charset charset; field in class:CharsetEncoder
96 // decoder instance for this encoder's charset, used for replacement value checkin
216 public final Charset charset() { method in class:CharsetEncoder
    [all...]
  /libcore/luni/src/main/java/libcore/net/
UriCodec.java 22 import java.nio.charset.Charset;
23 import java.nio.charset.StandardCharsets;
94 private void appendEncoded(StringBuilder builder, String s, Charset charset,
109 appendHex(builder, s.substring(escapeStart, i), charset);
126 appendHex(builder, s.substring(escapeStart, s.length()), charset);
130 public final String encode(String s, Charset charset) {
133 appendEncoded(builder, s, charset, false)
    [all...]
  /external/okhttp/src/test/java/com/squareup/okhttp/
MediaTypeTest.java 20 import java.nio.charset.Charset;
21 import java.nio.charset.IllegalCharsetNameException;
22 import java.nio.charset.UnsupportedCharsetException;
38 MediaType mediaType = MediaType.parse("text/plain;boundary=foo;charset=utf-8");
41 assertEquals("UTF-8", mediaType.charset().name());
42 assertEquals("text/plain;boundary=foo;charset=utf-8", mediaType.toString());
43 assertTrue(mediaType.equals(MediaType.parse("text/plain;boundary=foo;charset=utf-8")));
45 MediaType.parse("text/plain;boundary=foo;charset=utf-8").hashCode());
50 assertMediaType("application/atom+xml; charset=utf-8")
138 MediaType charset = MediaType.parse("text\/plain; charset=iso-8859-1"); local
    [all...]

Completed in 2400 milliseconds

1 23 4 5 6 7 8