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 Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/ResourceUtil.java

         * Removes the extension from the path.
         *
         * @param path
         *            The path. Must not be {@literal null}.
         * @return The path without the extension.
         */
        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 Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 14.7K bytes
    - Viewed (0)
Back to top