Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for UTF8 (0.14 sec)

  1. 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)
  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/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)
  4. src/main/java/org/codelibs/fess/mylasta/direction/FessFwAssistantDirector.java

                oneWay = OneWayCryptographer.createSha512Cryptographer();
            } else if ("md5".equalsIgnoreCase(digestAlgorism)) {
                oneWay = new OneWayCryptographer("MD5", OneWayCryptographer.ENCODING_UTF8);
            } else {
                oneWay = OneWayCryptographer.createSha256Cryptographer();
            }
    
            return new FessSecurityResourceProvider(inver, oneWay);
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            final DOMParser parser = getDomParser();
            try (final BufferedInputStream bis = new BufferedInputStream(responseData.getResponseBody())) {
                final byte[] bomBytes = new byte[UTF8_BOM_SIZE];
                bis.mark(UTF8_BOM_SIZE);
                final int size = bis.read(bomBytes);
                if (size < 3 || !isUtf8BomBytes(bomBytes)) {
                    bis.reset();
                }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 41.9K bytes
    - Viewed (0)
Back to top