Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for ResourceUtil (1.44 sec)

  1. src/main/resources/fess_config.xml

    <!DOCTYPE components PUBLIC "-//DBFLUTE//DTD LastaDi 1.0//EN"
    	"http://dbflute.org/meta/lastadi10.dtd">
    <components>
    	<component name="systemProperties" class="org.codelibs.core.misc.DynamicProperties">
    		<arg>
    			org.codelibs.fess.util.ResourceUtil.getConfPath("system.properties")
    		</arg>
    	</component>
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jan 07 01:51:15 UTC 2016
    - 360 bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

                mockThemeHelper.install(artifact);
                assertTrue(true); // Should complete without exception
            } catch (Exception e) {
                // May fail due to ResourceUtil dependencies in test environment
                assertTrue(true);
            }
        }
    
        public void test_install_withInvalidZip() throws IOException {
            // Create an invalid zip file
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/io/InputStreamUtilTest.java

    /**
     * @author higa
     *
     */
    public class InputStreamUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testGetBytes() throws Exception {
            final InputStream is = ResourceUtil.getResourceAsStream(StringUtil.replace(getClass().getName(), ".", "/") + ".class");
            try {
                assertNotNull("1", InputStreamUtil.getBytes(is));
            } finally {
                is.close();
            }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

            return redirect(getClass()); // no-op
        }
    
        private Path getDocJsonPath() {
            return ResourceUtil.getClassesPath("fess_indices", "fess", "doc.json");
        }
    
        private Path getFessJsonPath() {
            return ResourceUtil.getClassesPath("fess_indices", "fess.json");
        }
    
        private StreamResponse writeNdjsonResponse(final String id, final Consumer<Writer> writeCall) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

                    // Override ResourceUtil behavior for testing
                    File[] jarFiles = new File[] { jarFile };
                    return super.loadDataStoreNameList();
                }
            };
    
            // Note: ResourceUtil.getPluginJarFiles is a static method, so we can't mock it directly
            // The test will verify the method works with the actual ResourceUtil implementation
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNull;
    
    import java.net.URLConnection;
    
    import org.codelibs.core.exception.EmptyArgumentException;
    import org.codelibs.core.io.ResourceUtil;
    import org.codelibs.core.lang.ClassUtil;
    import org.junit.Rule;
    import org.junit.Test;
    import org.junit.rules.ExpectedException;
    
    /**
     * @author shot
     */
    public class MimeTypeUtilTest {
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/xml/SAXParserFactoryUtilTest.java

    package org.codelibs.core.xml;
    
    import java.io.IOException;
    
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    
    import junit.framework.TestCase;
    
    import org.codelibs.core.io.ResourceUtil;
    import org.xml.sax.Attributes;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    
    /**
     * {@link SAXParserFactoryUtil}のテストです。
     *
     * @author koichik
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/PluginHelper.java

                        CopyUtil.copy(in, ResourceUtil.getPluginPath(fileName).toFile());
                    }
                } catch (final Exception e) {
                    throw new PluginException("Failed to install the artifact " + artifact.getName(), e);
                }
            } else {
                try (final InputStream in = new FileInputStream(url)) {
                    CopyUtil.copy(in, ResourceUtil.getPluginPath(fileName).toFile());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/net/MimeTypeUtil.java

    import java.io.IOException;
    import java.io.InputStream;
    import java.net.URLConnection;
    
    import org.codelibs.core.exception.IORuntimeException;
    import org.codelibs.core.io.CloseableUtil;
    import org.codelibs.core.io.ResourceUtil;
    
    /**
     * Utility class for MIME types.
     *
     * @author shot
     */
    public abstract class MimeTypeUtil {
    
        /**
         * Do not instantiate.
         */
        protected MimeTypeUtil() {
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/io/FileUtilTest.java

    import java.io.File;
    import java.net.URL;
    
    import org.codelibs.core.net.URLUtil;
    import org.junit.Test;
    
    /**
     * @author koichik
     *
     */
    public class FileUtilTest {
    
        URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt");
    
        File inputFile = URLUtil.toFile(url);
    
        /**
         * @throws Exception
         */
        @Test
        public void testFileToFile() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top