- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for readUtf8 (0.24 sec)
-
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("あ")); } private String getPath(final String fileName) { return getClass().getName().replace('.', '/').replaceFirst(getClass().getSimpleName(), fileName); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
* @return 読み込んだテキスト */ public static String readUTF8(final String path) { assertArgumentNotEmpty("path", path); return readText(path, UTF8); } /** * UTF8でファイルからテキストを読み込みます。 * * @param file * ファイル。{@literal null}であってはいけません * @return 読み込んだテキスト */ public static String readUTF8(final File file) { assertArgumentNotNull("file", file);
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9K bytes - Viewed (0)