Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for getContentType (0.09 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImplTest.java

            try {
                mimeTypeHelper.getContentType(null, "");
                fail();
            } catch (final MimeTypeException e) {}
    
            assertEquals("text/plain", mimeTypeHelper.getContentType(is, ""));
            assertEquals("text/plain", mimeTypeHelper.getContentType(is, " "));
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImpl.java

            }
        }
    
        @Override
        public String getContentType(final InputStream is, final String filename) {
            final Map<String, String> params = new HashMap<>();
            params.put(ExtractData.RESOURCE_NAME_KEY, filename);
            return getContentType(is, params);
        }
    
        @Override
        public String getContentType(final InputStream is, final Map<String, String> params) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/MimeTypeHelper.java

    package org.codelibs.fess.crawler.helper;
    
    import java.io.InputStream;
    import java.util.Map;
    
    /**
     * @author shinsuke
     *
     */
    public interface MimeTypeHelper {
        String getContentType(InputStream is, String filename);
    
        String getContentType(InputStream is, Map<String, String> params);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 914 bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                                responseData.setMimeType(mimeTypeHelper.getContentType(is, file.getName()));
                            } catch (final Exception e) {
                                responseData.setMimeType(mimeTypeHelper.getContentType(null, file.getName()));
                            }
                        } else {
                            if (logger.isDebugEnabled()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 23 01:54:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                                responseData.setMimeType(mimeTypeHelper.getContentType(is, file.getName()));
                            } catch (final Exception e) {
                                responseData.setMimeType(mimeTypeHelper.getContentType(null, file.getName()));
                            }
                        } else {
                            if (logger.isDebugEnabled()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

                            responseData.setMimeType(mimeTypeHelper.getContentType(is, file.getName()));
                        } catch (final Exception e) {
                            responseData.setMimeType(mimeTypeHelper.getContentType(null, file.getName()));
                        }
    
                        if (contentLengthHelper != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractorTest.java

                public static final String MULTIPART_FORMDATA_TYPE = "multipart/form-data";
    
                public static boolean isMultipartRequest(HttpServletRequest request) {
                    return request.getContentType() != null && request.getContentType().startsWith(MULTIPART_FORMDATA_TYPE);
                }
    
                @Override
                public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch)
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java

            final MimeTypeHelper mimeTypeHelper = crawlerContainer.getComponent("mimeTypeHelper");
            try (InputStream is = getContentInputStream(out)) {
                return mimeTypeHelper.getContentType(is, filename);
            }
        }
    
        protected InputStream getContentInputStream(final DeferredFileOutputStream out) throws IOException {
            if (out.isInMemory()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ZipExtractor.java

                    }
                    final String filename = entry.getName();
                    final String mimeType = mimeTypeHelper.getContentType(null, filename);
                    if (mimeType != null) {
                        final Extractor extractor = extractorFactory.getExtractor(mimeType);
                        if (extractor != null) {
                            try {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java

                    }
                    final String filename = head.getPath();
                    final String mimeType = mimeTypeHelper.getContentType(null, filename);
                    if (mimeType != null) {
                        final Extractor extractor = extractorFactory.getExtractor(mimeType);
                        if (extractor != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top