Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for PATH (0.25 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. src/main/java/org/codelibs/core/exception/ResourceNotFoundRuntimeException.java

        private final String path;
    
        /**
         * {@link ResourceNotFoundRuntimeException}を作成します。
         *
         * @param path
         *            リソースのパス
         */
        public ResourceNotFoundRuntimeException(final String path) {
            super("ECL0055", asArray(path));
            this.path = path;
        }
    
        /**
         * パスを返します。
         *
         * @return パス
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/main/resources/CLMessages.properties

    ECL0103=Type({0}) is an interface not a class.
    ECL0104=Argument({0}) is not an array.
    ECL0105=Rethrew {0} as a runtime exception.
    ECL0106=IOException occurred, because {0}
    ECL0107=InvalidKeyException occurred, because {0}
    ECL0108=The path is null.
    ECL0109=Could not create a parent directory of {0}
    ECL0110=A parent directory of {0} is not a directory.
    ECL0111={0} is not a file.
    ECL0112=Could not store {0}
    ECL0113=NoSuchPaddingException occurred, because {0}
    Properties
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:58:02 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/PropertiesUtil.java

         *            プロパティセット。{@literal null}であってはいけません
         * @param path
         *            リソースのパス。{@literal null}や空文字列であってはいけません
         */
        public static void load(final Properties props, final String path) {
            assertArgumentNotNull("props", props);
            assertArgumentNotEmpty("path", path);
    
            load(props, ResourceUtil.getResource(path));
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/lang/SystemUtilTest.java

         */
        @Test
        public void test() throws Exception {
            System.out.println(SystemUtil.FILE_ENCODING);
            System.out.println(SystemUtil.LINE_SEPARATOR);
            System.out.println(SystemUtil.PATH_SEPARATOR);
            System.out.println(SystemUtil.OS_NAME);
            System.out.println(SystemUtil.JAVA_IO_TMPDIR);
            System.out.println(SystemUtil.USER_DIR);
            System.out.println(SystemUtil.USER_HOME);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.2K bytes
    - Viewed (0)
Back to top