Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for UTF8 (0.12 sec)

  1. src/test/java/org/codelibs/core/io/FileUtilTest.java

        }
    
        /**
         * @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)
  2. src/main/java/org/codelibs/core/io/FileUtil.java

            }
        }
    
        /**
         * UTF8でファイルからテキストを読み込みます。
         *
         * @param path
         *            パス。{@literal null}や空文字列であってはいけません
         * @return 読み込んだテキスト
         */
        public static String readUTF8(final String path) {
            assertArgumentNotEmpty("path", path);
            return readText(path, UTF8);
        }
    
        /**
         * UTF8でファイルからテキストを読み込みます。
         *
         * @param 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)
  3. src/main/java/org/codelibs/core/zip/ZipFileUtil.java

            final int pos = urlString.lastIndexOf('!');
            final String zipFilePath = urlString.substring(0, pos);
            final File zipFile = new File(URLUtil.decode(zipFilePath, "UTF8"));
            return FileUtil.getCanonicalPath(zipFile);
        }
    
        /**
         * Zipファイルをクローズします。
         * <p>
         * {@link ZipFile#close()}が例外をスローした場合はログにエラーメッセージを出力します。 例外は再スローされません。
         * </p>
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/jar/JarFileUtil.java

            final int pos = nestedUrlPath.lastIndexOf('!');
            final String jarFilePath = nestedUrlPath.substring(0, pos);
            final File jarFile = new File(URLUtil.decode(jarFilePath, "UTF8"));
            return FileUtil.getCanonicalPath(jarFile);
        }
    
        /**
         * Jarファイルをクローズします。
         * <p>
         * {@link JarFile#close()}が例外をスローした場合はログにエラーメッセージを出力します。 例外は再スローされません。
         * </p>
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/ResourceUtil.java

            return URLUtil.decode(s, "UTF8");
        }
    
        /**
         * リソースのファイル名を返します。
         *
         * @param url
         *            リソースのURL。{@literal null}であってはいけません
         * @return ファイル名
         */
        public static String getFileName(final URL url) {
            assertArgumentNotNull("url", url);
    
            final String s = url.getFile();
            return URLUtil.decode(s, "UTF8");
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 15.8K bytes
    - Viewed (0)
Back to top