Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for detected (0.03 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java

                    }
                }
            }
    
        }
    
        /**
         * Detects the MIME type of the content.
         *
         * @param out the deferred file output stream
         * @return the detected MIME type
         * @throws IOException if an I/O error occurs
         */
        protected String getMimeType(final DeferredFileOutputStream out) throws IOException {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/MimeTypeHelper.java

         * @return the detected content type
         */
        String getContentType(InputStream is, String filename);
    
        /**
         * Determines the content type of the given input stream using the provided parameters.
         * @param is the input stream to analyze
         * @param params the parameters containing additional information like filename
         * @return the detected content type
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImpl.java

    import org.codelibs.fess.crawler.helper.MimeTypeHelper;
    
    /**
     * MimeTypeHelperImpl is a helper class that detects the MIME type of a given input stream or filename.
     * It uses the Apache Tika library to detect the MIME type.
     *
     * <p>
     * This class provides methods to:
     * </p>
     * <ul>
     *   <li>Detect the MIME type based on the input stream and filename.</li>
     *   <li>Normalize the filename to handle special characters.</li>
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

        /**
         * This class is a parser that detects the document type.
         */
        protected class TikaDetectParser extends CompositeParser {
            private static final long serialVersionUID = 1L;
    
            /**
             * The type detector used by this parser to auto-detect the type of a
             * document.
             */
            private final Detector detector; // always set in the constructor
    
            /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractXmlExtractor.java

         */
        protected ExtractData createExtractData(final String content) {
            return new ExtractData(extractString(content));
        }
    
        /**
         * Detects the encoding of the input stream.
         * @param bis The buffered input stream.
         * @return The detected encoding.
         */
        protected String getEncoding(final BufferedInputStream bis) {
            final byte[] b = new byte[preloadSizeForCharset];
            try {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlXpathExtractor.java

     * It also provides methods to add custom features and properties to the {@link DOMParser}.
     * </p>
     * <p>
     * The encoding of the HTML document is automatically detected using a regular expression that matches the charset attribute in the meta tag.
     * </p>
     *
     */
    public class HtmlXpathExtractor extends AbstractXmlExtractor {
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

            } catch (final Exception e) {
                return false;
            }
            return true;
        }
    
        /**
         * Loads and detects the character set from the input stream.
         *
         * @param inputStream the input stream to read from
         * @return the detected character set name, or null if not found
         * @throws CrawlingAccessException if an error occurs while reading the content
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 28.5K bytes
    - Viewed (0)
  8. fess-crawler/src/main/resources/org/codelibs/fess/crawler/mime/tika-mimetypes.xml

         a low one
       * The priority for containers normally need to be higher than for
         the things they contain, so they don't accidently get detected
         as what's in them
       * For logic too complex to be expressed in a magic match, do the best
         you can here, then provide a Custom Detector for the rest
    -->
    <mime-info xmlns:tika="https://tika.apache.org/">
    
      <mime-type type="application/activemessage"/>
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Mar 13 08:18:01 UTC 2025
    - 320.1K bytes
    - Viewed (1)
  9. src/main/java/org/codelibs/fess/suggest/request/RequestBuilder.java

            this.client = client;
            this.request = request;
        }
    
        /**
         * Executes the request.
         * @return A Promise that will be resolved with the response or rejected with an error.
         */
        public Deferred<Res>.Promise execute() {
            return request.execute(client);
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java

    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.io.FileUtil;
    
    /**
     * A custom InputStream that wraps a temporary file. This class ensures that the temporary file
     * is deleted when the stream is closed.
     */
    public class TemporaryFileInputStream extends InputStream {
        private static final Logger logger = LogManager.getLogger(TemporaryFileInputStream.class);
    
        private final File tempFile;
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top