Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for writeBytes (0.04 sec)

  1. src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java

            try {
                // Create temporary properties file
                File tempPropFile = File.createTempFile("test_suggest_", ".properties");
                tempPropFile.deleteOnExit();
                FileUtil.writeBytes(tempPropFile.getAbsolutePath(), "test.property=value".getBytes());
    
                SuggestCreator.Options options = new SuggestCreator.Options();
                options.propertiesPath = tempPropFile.getAbsolutePath();
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

                    return Integer.valueOf(-1);
                }
            };
            File file = File.createTempFile("test", ".properties");
            file.deleteOnExit();
            FileUtil.writeBytes(file.getAbsolutePath(), "ldap.security.principal=******@****.***".getBytes("UTF-8"));
            DynamicProperties systemProps = new DynamicProperties(file);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/helper/RelatedContentHelperTest.java

            super.setUp();
    
            // Setup system properties for DI container
            File file = File.createTempFile("test", ".properties");
            file.deleteOnExit();
            FileUtil.writeBytes(file.getAbsolutePath(), "test.property=test".getBytes("UTF-8"));
            DynamicProperties systemProps = new DynamicProperties(file);
            ComponentUtil.register(systemProps, "systemProperties");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

                    return 60000;
                }
            };
            ComponentUtil.register(fessConfig, "fessConfig");
    
            File propFile = File.createTempFile("test", ".properties");
            FileUtil.writeBytes(propFile.getAbsolutePath(), new byte[0]);
            propFile.deleteOnExit();
            systemProperties = new DynamicProperties(propFile);
            ComponentUtil.register(systemProperties, "systemProperties");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

        private void setupMockComponents() {
            try {
                // Register mock system properties
                File propFile = File.createTempFile("test", ".properties");
                org.codelibs.core.io.FileUtil.writeBytes(propFile.getAbsolutePath(), new byte[0]);
                propFile.deleteOnExit();
                DynamicProperties mockProperties = new DynamicProperties(propFile) {
                    @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/SambaHelperTest.java

            super.setUp();
    
            // Setup system properties for DI container
            File file = File.createTempFile("test", ".properties");
            file.deleteOnExit();
            FileUtil.writeBytes(file.getAbsolutePath(), "test.property=test".getBytes("UTF-8"));
            DynamicProperties systemProps = new DynamicProperties(file);
            ComponentUtil.register(systemProps, "systemProperties");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
            final File propFile = File.createTempFile("project", ".properties");
            propFile.deleteOnExit();
            FileUtil.writeBytes(propFile.getAbsolutePath(), "fess.version=98.76.5".getBytes());
            final File desginJspRootFile = File.createTempFile("jsp", "");
            desginJspRootFile.delete();
            desginJspRootFile.deleteOnExit();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/FileUtil.java

         *
         * @param pathname
         *            The path to the file.
         * @param bytes
         *            The byte array to write.
         */
        public static void writeBytes(final String pathname, final byte[] bytes) {
            try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) {
                ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

        private File propertiesFile;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            propertiesFile = File.createTempFile("test", ".properties");
            FileUtil.writeBytes(propertiesFile.getAbsolutePath(), new byte[0]);
            propertiesFile.deleteOnExit();
            DynamicProperties systemProps = new DynamicProperties(propertiesFile);
            ComponentUtil.register(systemProps, "systemProperties");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/RelatedQueryHelperTest.java

            super.setUp();
    
            // Setup system properties for DI container
            File file = File.createTempFile("test", ".properties");
            file.deleteOnExit();
            FileUtil.writeBytes(file.getAbsolutePath(), "test.property=test".getBytes("UTF-8"));
            DynamicProperties systemProps = new DynamicProperties(file);
            ComponentUtil.register(systemProps, "systemProperties");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 16.3K bytes
    - Viewed (0)
Back to top