OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:UTF_8
(Results
1 - 25
of
66
) sorted by null
1
2
3
/external/guava/guava/src/com/google/common/base/
Charsets.java
44
public static final Charset
UTF_8
= Charset.forName("UTF-8");
/external/guava/guava-tests/test/com/google/common/base/
CharsetsTest.java
38
assertEquals(Charset.forName("UTF-8"), Charsets.
UTF_8
);
/external/okhttp/okio/src/test/java/okio/
GzipSourceTest.java
22
import static okio.Util.
UTF_8
;
55
gzipped.write("blubber".getBytes(
UTF_8
), 0, 7);
64
gzipped.write("foo.txt".getBytes(
UTF_8
), 0, 7);
74
gzipped.write("rubbish".getBytes(
UTF_8
), 0, 7);
89
gzipped.write("blubber".getBytes(
UTF_8
), 0, 7);
90
gzipped.write("foo.txt".getBytes(
UTF_8
), 0, 7);
92
gzipped.write("rubbish".getBytes(
UTF_8
), 0, 7);
OkioTest.java
24
import static okio.Util.
UTF_8
;
45
("a" + repeat('b', Segment.SIZE * 2) + "c").getBytes(
UTF_8
));
ByteStringTest.java
61
assertByteArraysEquals(byteString.toByteArray(), bronzeHorseman.getBytes(Util.
UTF_8
));
62
assertTrue(byteString.equals(ByteString.of(bronzeHorseman.getBytes(Util.
UTF_8
))));
73
InputStream in = new ByteArrayInputStream("abc".getBytes(Util.
UTF_8
));
80
InputStream in = new ByteArrayInputStream("ABC".getBytes(Util.
UTF_8
));
RealBufferedSinkTest.java
23
import static okio.Util.
UTF_8
;
32
out.write(repeat('b', 9998).getBytes(
UTF_8
));
RealBufferedSourceTest.java
24
import static okio.Util.
UTF_8
;
47
assertEquals(repeat('b', Segment.SIZE - 1), new String(data, 0, Segment.SIZE - 1,
UTF_8
));
/external/guava/guava-tests/test/com/google/common/io/
CharStreamsTest.java
19
import static com.google.common.base.Charsets.
UTF_8
;
50
= CharStreams.newReaderSupplier(ByteStreamsTest.BROKEN_READ,
UTF_8
);
53
= CharStreams.newWriterSupplier(ByteStreamsTest.BROKEN_WRITE,
UTF_8
);
56
= CharStreams.newReaderSupplier(ByteStreamsTest.BROKEN_CLOSE_INPUT,
UTF_8
);
59
= CharStreams.newWriterSupplier(ByteStreamsTest.BROKEN_CLOSE_OUTPUT,
UTF_8
);
62
= CharStreams.newReaderSupplier(ByteStreamsTest.BROKEN_GET_INPUT,
UTF_8
);
65
= CharStreams.newWriterSupplier(ByteStreamsTest.BROKEN_GET_OUTPUT,
UTF_8
);
96
byte[] bytes = "a\nb\nc".getBytes(Charsets.
UTF_8
.name());
98
new InputStreamReader(new ByteArrayInputStream(bytes), Charsets.
UTF_8
));
ResourcesTest.java
57
assertEquals(I18N, Resources.toString(resource, Charsets.
UTF_8
));
73
Resources.readLines(resource, Charsets.
UTF_8
));
FilesSimplifyPathTest.java
19
import static com.google.common.base.Charsets.
UTF_8
;
299
for (String line : Resources.readLines(url,
UTF_8
)) {
/external/apache-http/src/org/apache/http/protocol/
HTTP.java
79
public static final String
UTF_8
= "UTF-8";
/external/okhttp/okio/src/main/java/okio/
Util.java
22
public static final Charset
UTF_8
= Charset.forName("UTF-8");
ByteString.java
61
ByteString byteString = new ByteString(s.getBytes(Util.
UTF_8
));
70
return result != null ? result : (utf8 = new String(data, Util.
UTF_8
));
OkBuffer.java
28
import static okio.Util.
UTF_8
;
290
return new String(readBytes(byteCount), Util.
UTF_8
);
293
String result = new String(head.data, head.pos, (int) byteCount,
UTF_8
);
413
byte[] data = string.getBytes(Util.
UTF_8
);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
RequestTest.java
30
Request.Body body = Request.Body.create(contentType, "abc".getBytes(Util.
UTF_8
));
55
Request.Body body = Request.Body.create(contentType, "abc".getBytes(Util.
UTF_8
));
MediaTypeTest.java
135
assertEquals("UTF-8", noCharset.charset(Util.
UTF_8
).name());
139
assertEquals("ISO-8859-1", charset.charset(Util.
UTF_8
).name());
/external/owasp/sanitizer/src/tests/org/owasp/html/
HtmlLexerTest.java
49
Charsets.
UTF_8
);
56
Charsets.
UTF_8
);
/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/
RmTypeDefsTest.java
19
import static com.google.common.base.Charsets.
UTF_8
;
108
Files.write(testClass, srcFile1, Charsets.
UTF_8
);
114
Files.write(intdef, srcFile2, Charsets.
UTF_8
);
193
String symbol = new String(contents, i, length,
UTF_8
);
/external/owasp/sanitizer/src/main/org/owasp/html/examples/
SlashdotPolicyExample.java
100
new InputStreamReader(System.in, Charsets.
UTF_8
));
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/
bugTools.jar
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/
Crawler.java
43
public static final Charset
UTF_8
= Charset.forName("UTF-8");
103
Document document = Jsoup.parse(in, mediaType.charset(
UTF_8
).name(), url.toString());
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Response.java
38
import static com.squareup.okhttp.internal.Util.
UTF_8
;
291
return contentType != null ? contentType.charset(
UTF_8
) :
UTF_8
;
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/streams/
interactive.rb
41
line = line.to_s.encode( Encoding::
UTF_8
)
/development/samples/Vault/tests/src/com/example/android/vault/
EncryptedDocumentTest.java
93
final byte[] content = "KITTENS".getBytes(StandardCharsets.
UTF_8
);
224
final byte[] content = "KITTENS".getBytes(StandardCharsets.
UTF_8
);
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/
FileCheckerCallable.java
49
String text = StandardCharsets.
UTF_8
.decode(ByteBuffer.wrap(encoded)).toString();
Completed in 2087 milliseconds
1
2
3