- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for readUtf8 (1 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
assertThat(source.readUtf8()).isEqualTo("Hello") assertThat(response.trailers()).isEqualTo(headersOf("t1", "v2")) } val call2 = client.newCall(Request(server.url("/"))) call2.execute().use { response -> val source = response.body.source() assertThat(response.header("h1")).isEqualTo("v1") assertThat(source.readUtf8()).isEqualTo("Hello")
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 08 21:45:04 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
* * @param path * The path. Must not be {@literal null} or empty. * @return The text read from the file. */ public static String readUTF8(final String path) { assertArgumentNotEmpty("path", path); return readText(path, UTF8); } /** * Reads text from a file in UTF-8 encoding. * * @param fileRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 13.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/DictionaryManager.java
try (CurlResponse response = ComponentUtil.getCurlHelper() .post("/_configsync/file") .param("path", dictFile.getPath()) .body(FileUtil.readUTF8(file)) .execute()) { final Map<String, Object> contentMap = response.getContent(OpenSearchCurl.jsonParser());
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
assertThat(bytes, is("あいうえお".getBytes("UTF-8"))); } /** * @throws Exception */ @Test public void testReadUTF8() throws Exception { assertThat(FileUtil.readUTF8(getPath("hoge_utf8.txt")), is("あ")); } /** * Test isPathSafe with safe path * * @throws Exception */ @Test public void testIsPathSafe_SafePath() throws Exception {
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java
final String autoExpandReplicas) { final FessConfig fessConfig = ComponentUtil.getFessConfig(); String source = FileUtil.readUTF8(indexConfigFile); String dictionaryPath = System.getProperty("fess.dictionary.path", StringUtil.EMPTY); if (StringUtil.isNotBlank(dictionaryPath) && !dictionaryPath.endsWith("/")) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 122.4K bytes - Viewed (1)