Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for removeExtension (0.07 sec)

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

        }
    
        /**
         * @throws Exception
         */
        public void testRemoteExtension() throws Exception {
            assertEquals("1", "aaa/bbb", ResourceUtil.removeExtension("aaa/bbb.xml"));
            assertEquals("2", "aaa/bbb", ResourceUtil.removeExtension("aaa/bbb"));
        }
    
        /**
         * @throws Exception
         */
        public void testToExternalForm() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/ResourceUtil.java

            return null;
        }
    
        /**
         * パスから拡張子を取り除きます。
         *
         * @param path
         *            パス。{@literal null}であってはいけません
         * @return 拡張子を取り除いたパス
         */
        public static String removeExtension(final String path) {
            assertArgumentNotNull("path", path);
    
            final int extPos = path.lastIndexOf(".");
            if (extPos >= 0) {
                return path.substring(0, extPos);
            }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top