Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,108 for mime (0.02 seconds)

  1. src/test/resources/jcifs/smb1/util/mime.map

    Shinsuke Sugaya <******@****.***> 1755149504 +0900
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/helper/FileTypeHelper.java

    /**
     * Helper class for managing file type mappings based on MIME types.
     * This class provides functionality to map MIME types to file types and
     * retrieve appropriate file type classifications for documents during indexing.
     *
     * The mappings are loaded from configuration and can be dynamically modified
     * at runtime. When a MIME type is not found in the mapping, a default value
     * is returned.
     */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

                // Test case 1: SVG MIME type should match
                Map<String, Object> svgDocMap = new HashMap<>();
                svgDocMap.put("thumbnail", "http://example.com/image.svg");
                svgDocMap.put("mimetype", "image/svg+xml");
                assertTrue("SVG MIME type should be target", generator.isTarget(svgDocMap));
    
                // Test case 2: Different MIME type should not match
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/crawler/helper/FessMimeTypeHelper.java

    import org.codelibs.fess.util.ComponentUtil;
    
    import jakarta.annotation.PostConstruct;
    
    /**
     * FessMimeTypeHelper extends MimeTypeHelperImpl to provide Fess-specific
     * MIME type detection configuration. It reads extension-to-MIME-type override
     * mappings from FessConfig to handle cases where content-based detection
     * produces incorrect results (e.g., SQL files starting with REM comments
     * being misdetected as batch files).
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jan 24 09:06:33 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/crawler/rule/CrawlerRuleMimeTypePatternTest.java

    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.junit.jupiter.api.Test;
    
    /**
     * Test class for MIME type patterns defined in crawler/rule.xml.
     * Verifies that regex patterns correctly match MIME types with special characters.
     *
     * This test ensures that the + character in MIME types like application/xhtml+xml
     * is properly escaped in regex patterns to match literally.
     */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/util/MimeMap.java

     */
    
    package jcifs.smb1.util;
    
    import java.io.IOException;
    import java.io.InputStream;
    
    /**
     * MIME type mapping utility for file extensions.
     * Provides mappings between file extensions and their corresponding MIME types
     * by reading from a resource file containing extension-to-MIME-type mappings.
     */
    public class MimeMap {
    
        private static final int IN_SIZE = 7000;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  7. src/main/resources/crawler/rule.xml

    		<postConstruct name="addRule">
    			<arg>"url"</arg>
    			<arg>"http[s]?:.*"</arg>
    		</postConstruct>
    		<postConstruct name="addRule">
    			<arg>"mimeType"</arg>
    			<!-- Supported MIME type -->
    			<arg>"text/html"</arg>
    		</postConstruct>
    	</component>
    
    	<component name="webFileRule" class="org.codelibs.fess.crawler.rule.impl.RegexRule" >
    		<property name="ruleId">"webFileRule"</property>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 29 08:21:02 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

        }
    
        // ==================== Tests for getExtensionFromMimeType method ====================
    
        // Tests for GIF MIME type
        @Test
        public void test_getExtensionFromMimeType_gif() {
            assertEquals(".gif", generator.getExtensionFromMimeType("image/gif"));
        }
    
        // Tests for TIFF MIME type
        @Test
        public void test_getExtensionFromMimeType_tiff() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

            });
    
        }
    
        /**
         * Checks if the response data contains an image MIME type that can be processed
         * for thumbnail generation.
         *
         * @param responseData the response data containing MIME type information
         * @return true if the MIME type represents a supported image format, false otherwise
         */
        protected boolean isImageMimeType(final ResponseData responseData) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 01 12:47:47 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/thumbnail/ThumbnailAction.java

                    out.write(in);
                }
            });
        }
    
        /**
         * Determines the MIME type of an image file based on its file extension.
         *
         * @param imageFile the image file
         * @return the MIME type string
         */
        protected String getImageMimeType(final File imageFile) {
            final String path = imageFile.getAbsolutePath();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.4K bytes
    - Click Count (0)
Back to Top