Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for PATH (0.33 sec)

  1. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

            final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/aaa.html";
            final String contentType = MimeTypeUtil.guessContentType(path);
            assertEquals("text/html", contentType);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetFromStream_gif() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/FileUtil.java

            }
        }
    
        /**
         * デフォルトエンコーディングでファイルからテキストを読み込みます。
         *
         * @param path
         *            ファイルのパス。{@literal null}や空文字列であってはいけません
         * @return 読み込んだテキスト
         */
        public static String readText(final String path) {
            assertArgumentNotEmpty("path", path);
            return readText(path, Charset.defaultCharset().name());
        }
    
        /**
         * デフォルトエンコーディングでファイルからテキストを読み込みます。
         *
    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/io/TraversalUtil.java

            }
    
            @Override
            public void forEach(final ResourceHandler handler) {
                ResourceTraversalUtil.forEach(jarFile, (ResourceHandler) (path, is) -> {
                    if (rootDir == null || path.startsWith(rootDir)) {
                        handler.processResource(path, is);
                    }
                });
            }
    
            @Override
            public void close() {
                JarFileUtil.close(jarFile);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/io/TraverserUtilTest.java

            assertThat(traverser instanceof FileSystemTraverser, is(true));
    
            final List<String> list = new ArrayList<String>();
            traverser.forEach((ResourceHandler) (path, is) -> list.add(path));
            assertThat(list.size(), is(1));
            assertThat(list.get(0).endsWith("DummyTest.class"), is(true));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/SystemUtil.java

         */
        public static final String LINE_SEPARATOR = System.getProperty("line.separator");
    
        /**
         * <code>path.separator</code> システムプロパティ。例えばMac OS Xなら
         * <code>&quot;:&quot;</code>
         */
        public static final String PATH_SEPARATOR = System.getProperty("path.separator");
    
        /**
         * <code>os.name</code> システムプロパティ。例:<code>Mac OS X</code>
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/io/ResourceTraversalTest.java

                try {
                    if (count < 10) {
                        System.out.println(path);
                    }
                    System.out.println(path);
                    assertThat(path, is(notNullValue()));
                    assertThat(path, path.startsWith("junit") || path.startsWith("org/junit") || path.startsWith("org/hamcrest")
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. .github/workflows/codeql-analysis.yml

            # By default, queries listed here will override any specified in a config file. 
            # Prefix the list here with "+" to use these queries and those in the config file.
            # queries: ./path/to/local/query, your-org/your-repo/queries@main
    
        # Autobuild attempts to build any compiled languages  (C/C++, C#, or Java).
        # If this step fails, then you should remove it and run the build manually (see below)
    Others
    - Registered: Fri Mar 01 20:58:10 GMT 2024
    - Last Modified: Wed Jan 19 23:41:02 GMT 2022
    - 2.5K bytes
    - Viewed (1)
  8. src/main/java/org/codelibs/core/io/ClassTraversalUtil.java

        /** WARファイルの拡張子 */
        protected static final String WAR_FILE_EXTENSION = ".war";
    
        /** WARファイル内のクラスファイルのエントリプレフィックス */
        protected static final String WEB_INF_CLASSES_PATH = "WEB-INF/classes/";
    
        /**
         * ルートディレクトリ配下を処理します。
         *
         * @param rootDir
         *            ルートディレクトリ。{@literal null}であってはいけません
         * @param handler
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/ResourceUtil.java

            assertArgumentNotEmpty("path", path);
    
            return getResourceNoException(path) != null;
        }
    
        /**
         * コンテキストクラスローダからプロパティファイルをロードして返します。
         *
         * @param path
         *            プロパティファイルのパス。{@literal null}や空文字列であってはいけません
         * @return プロパティファイル
         */
        public static Properties getProperties(final String path) {
    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)
  10. src/main/java/org/codelibs/core/misc/DynamicProperties.java

        protected volatile Properties properties;
    
        public DynamicProperties(final String path) {
            this(path == null ? null : new File(path));
        }
    
        public DynamicProperties(final Path path) {
            this(path == null ? null : path.toFile());
        }
    
        public DynamicProperties(final File file) {
            // check path
            if (file == null) {
                throw new FileAccessException("ECL0108");
            }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.6K bytes
    - Viewed (0)
Back to top