Home
last modified time | relevance | path

Searched refs:Charset (Results 1 – 25 of 46) sorted by relevance

12

/external/guava/guava/src/com/google/common/base/
DCharsets.java19 import java.nio.charset.Charset;
34 public static final Charset US_ASCII = Charset.forName("US-ASCII");
39 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
44 public static final Charset UTF_8 = Charset.forName("UTF-8");
49 public static final Charset UTF_16BE = Charset.forName("UTF-16BE");
54 public static final Charset UTF_16LE = Charset.forName("UTF-16LE");
60 public static final Charset UTF_16 = Charset.forName("UTF-16");
/external/guava/guava-tests/test/com/google/common/base/
DCharsetsTest.java21 import java.nio.charset.Charset;
30 assertEquals(Charset.forName("US-ASCII"), Charsets.US_ASCII); in testUsAscii()
34 assertEquals(Charset.forName("ISO-8859-1"), Charsets.ISO_8859_1); in testIso88591()
38 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8); in testUtf8()
42 assertEquals(Charset.forName("UTF-16BE"), Charsets.UTF_16BE); in testUtf16be()
46 assertEquals(Charset.forName("UTF-16LE"), Charsets.UTF_16LE); in testUtf16le()
50 assertEquals(Charset.forName("UTF-16"), Charsets.UTF_16); in testUtf16()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
DStringTest.java22 import java.nio.charset.Charset;
607 new String(new byte[8], 0, 4, Charset.defaultCharset()); in test_ConstructorBIIL()
608 new String(new byte[8], 8, 0, Charset.defaultCharset()); in test_ConstructorBIIL()
609 new String(new byte[0], 0, 0, Charset.defaultCharset()); in test_ConstructorBIIL()
612 new String(new byte[8], 0, 9, Charset.defaultCharset()); in test_ConstructorBIIL()
618 new String(new byte[8], 9, 0, Charset.defaultCharset()); in test_ConstructorBIIL()
624 new String(new byte[8], -1, 0, Charset.defaultCharset()); in test_ConstructorBIIL()
630 new String(new byte[8], 9, -1, Charset.defaultCharset()); in test_ConstructorBIIL()
636 new String(null, -1, 0, Charset.defaultCharset()); in test_ConstructorBIIL()
642 new String(null, 0, -1, Charset.defaultCharset()); in test_ConstructorBIIL()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DInputStreamReaderTest.java29 import java.nio.charset.Charset;
185 Charset cs = Charset.forName("utf-8"); in test_close()
186 assertEquals(cs, Charset.forName(reader.getEncoding())); in test_close()
243 assertEquals(Charset.forName(reader2.getEncoding()), Charset in test_ConstructorLjava_io_InputStreamLjava_lang_String()
247 assertEquals(Charset.forName(reader2.getEncoding()), Charset in test_ConstructorLjava_io_InputStreamLjava_lang_String()
258 Charset cs = Charset.forName("utf-8"); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_Charset()
266 reader = new InputStreamReader(in, (Charset) null); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_Charset()
272 assertEquals(Charset.forName(reader2.getEncoding()), cs); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_Charset()
282 CharsetDecoder decoder = Charset.forName("utf-8").newDecoder(); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_CharsetDecoder()
296 assertEquals(Charset.forName(reader2.getEncoding()), decoder.charset()); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_CharsetDecoder()
[all …]
DOutputStreamWriterTest.java30 import java.nio.charset.Charset;
343 assertEquals(Charset.forName("ascii"), Charset.forName(writer2 in testOutputStreamWriterOutputStreamString()
352 Charset cs = Charset.forName("ascii"); in testOutputStreamWriterOutputStreamCharset()
360 writer = new OutputStreamWriter(out, (Charset) null); in testOutputStreamWriterOutputStreamCharset()
366 assertEquals(cs, Charset.forName(writer2.getEncoding())); in testOutputStreamWriterOutputStreamCharset()
375 Charset cs = Charset.forName("ascii"); in testOutputStreamWriterOutputStreamCharsetEncoder()
390 assertEquals(cs, Charset.forName(writer2.getEncoding())); in testOutputStreamWriterOutputStreamCharsetEncoder()
395 Charset cs = Charset.forName("utf-8"); in testGetEncoding()
396 assertEquals(cs, Charset.forName(writer.getEncoding())); in testGetEncoding()
/external/guava/guava/src/com/google/common/io/
DFiles.java42 import java.nio.charset.Charset;
72 public static BufferedReader newReader(File file, Charset charset) in newReader()
86 public static BufferedWriter newWriter(File file, Charset charset) in newWriter()
151 Charset charset) {
164 Charset charset) {
179 Charset charset, boolean append) {
222 public static String toString(File file, Charset charset) throws IOException {
299 InputSupplier<R> from, File to, Charset charset) throws IOException {
312 public static void write(CharSequence from, File to, Charset charset)
326 public static void append(CharSequence from, File to, Charset charset)
[all …]
DResources.java29 import java.nio.charset.Charset;
74 URL url, Charset charset) {
98 public static String toString(URL url, Charset charset) throws IOException {
112 public static <T> T readLines(URL url, Charset charset,
127 public static List<String> readLines(URL url, Charset charset)
DCharStreams.java33 import java.nio.charset.Charset;
85 final InputSupplier<? extends InputStream> in, final Charset charset) {
105 final OutputSupplier<? extends OutputStream> out, final Charset charset) {
/external/okhttp/src/main/java/com/squareup/okhttp/
DMediaType.java18 import java.nio.charset.Charset;
93 public Charset charset() { in charset()
94 return charset != null ? Charset.forName(charset) : null; in charset()
101 public Charset charset(Charset defaultValue) { in charset()
102 return charset != null ? Charset.forName(charset) : defaultValue; in charset()
/external/okhttp/src/main/java/com/squareup/okhttp/internal/
DUtil.java31 import java.nio.charset.Charset;
44 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
47 public static final Charset US_ASCII = Charset.forName("US-ASCII");
50 public static final Charset UTF_8 = Charset.forName("UTF-8");
DStrictLineReader.java25 import java.nio.charset.Charset;
50 private final Charset charset;
71 public StrictLineReader(InputStream in, Charset charset) { in StrictLineReader()
86 public StrictLineReader(InputStream in, int capacity, Charset charset) { in StrictLineReader()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DPropertyResourceBundleTest.java28 import java.nio.charset.Charset;
73 Charset charset = Charset.forName("ISO-8859-1"); in test_ConstructorLjava_io_Reader()
85 charset = Charset.forName("UTF-8"); in test_ConstructorLjava_io_Reader()
/external/guava/guava/src/com/google/common/hash/
DHashFunction.java20 import java.nio.charset.Charset;
190 HashCode hashString(CharSequence input, Charset charset); in hashString()
DSink.java19 import java.nio.charset.Charset;
101 Sink putString(CharSequence charSequence, Charset charset); in putString()
DAbstractHasher.java19 import java.nio.charset.Charset;
46 @Override public Hasher putString(CharSequence charSequence, Charset charset) { in putString()
DHasher.java19 import java.nio.charset.Charset;
57 @Override Hasher putString(CharSequence charSequence, Charset charset); in putString()
DAbstractCompositeHashFunction.java5 import java.nio.charset.Charset;
113 @Override public Hasher putString(CharSequence chars, Charset charset) { in newHasher()
DMessageDigestHashFunction.java27 import java.nio.charset.Charset;
150 @Override public Hasher putString(CharSequence charSequence, Charset charset) { in putString()
/external/jmonkeyengine/engine/src/xml/com/jme3/export/xml/
DDOMSerializer.java36 import java.nio.charset.Charset;
51 private Charset encoding = Charset.forName("utf-8");
116 this.encoding = Charset.forName(encoding); in setEncoding()
/external/okhttp/src/test/java/com/squareup/okhttp/
DMediaTypeTest.java20 import java.nio.charset.Charset;
136 assertEquals("US-ASCII", noCharset.charset(Charset.forName("US-ASCII")).name()); in testDefaultCharset()
140 assertEquals("ISO-8859-1", charset.charset(Charset.forName("US-ASCII")).name()); in testDefaultCharset()
/external/guava/guava-tests/test/com/google/common/hash/
DAbstractNonStreamingHashFunctionTest.java12 import java.nio.charset.Charset;
98 public HashCode hashString(CharSequence input, Charset charset) { in hashString()
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/
DSCPClient.java5 import java.nio.charset.Charset;
45 Charset.forName(charset); in setCharset()
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
DHTMLMetaCharsetParser.cpp133 mode = Charset; in encodingFromMetaAttributes()
142 if (mode == Charset || (mode == Pragma && gotPragma)) in encodingFromMetaAttributes()
/external/chromium_org/third_party/WebKit/Source/core/css/
DStyleRule.cpp91 case Charset: in destroy()
125 case Charset: in copy()
170 case Charset: in createCSSOMWrapper()
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/
DDesignerPlugin.java31 import java.nio.charset.Charset;
96 public static String readFile(InputStream inputStream, Charset charset) { in readFile()

12