Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for putValues (0.12 sec)

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

                putValue(data, "File-Name", message.getFileName());
                putValue(data, "From", message.getFrom());
                putValue(data, "Line-Count", message.getLineCount());
                putValue(data, "Message-ID", message.getMessageID());
                putValue(data, "Message-Number", message.getMessageNumber());
                putValue(data, "Received-Date", getReceivedDate(message));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ExtractData.java

            // nothing
        }
    
        public ExtractData(final String content) {
            this.content = content;
        }
    
        public void putValues(final String key, final String[] values) {
            metadata.put(key, values);
        }
    
        public void putValue(final String key, final String value) {
            metadata.put(key, new String[] { value });
        }
    
        public String[] getValues(final String key) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlExtractor.java

                        StreamUtil.stream(getStringsByXPath(document, contentXpath)).get(stream -> stream.collect(Collectors.joining(" "))));
                metadataXpathMap.entrySet().stream().forEach(e -> {
                    extractData.putValues(e.getKey(), getStringsByXPath(document, e.getValue()));
                });
                return extractData;
            } finally {
                xpathAPI.remove();
            }
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/JodExtractor.java

                final ExtractData extractData = new ExtractData(getOutputContent(outputFile, outExt));
                if (StringUtil.isNotBlank(resourceName)) {
                    extractData.putValues("resourceName", new String[] { resourceName });
                }
    
                return extractData;
            } catch (final IOException | OfficeException e) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java

                final ExtractData extractData = new ExtractData(new String(FileUtil.readBytes(outputFile), outputEncoding));
                if (StringUtil.isNotBlank(resourceName)) {
                    extractData.putValues("resourceName", new String[] { resourceName });
                }
    
                return extractData;
            } catch (final IOException e) {
                throw new ExtractException("Could not extract a content.", e);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

                    final ExtractData extractData = new ExtractData(content);
                    extractData.putValue("Content-Length", Long.toString(contentLength));
    
                    final String[] names = metadata.names();
                    Arrays.sort(names);
                    for (final String name : names) {
                        extractData.putValues(name, metadata.getValues(name));
                    }
    
                    if (postFilter != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

      }
    
      override fun invalidate() {
        delegate!!.invalidate()
      }
    
      override fun isValid(): Boolean {
        return delegate!!.isValid
      }
    
      override fun putValue(
        s: String,
        o: Any,
      ) {
        delegate!!.putValue(s, o)
      }
    
      override fun getValue(s: String): Any {
        return delegate!!.getValue(s)
      }
    
      override fun removeValue(s: String) {
        delegate!!.removeValue(s)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt

      override fun getProtocol(): String {
        throw UnsupportedOperationException()
      }
    
      override fun getSessionContext(): SSLSessionContext {
        throw UnsupportedOperationException()
      }
    
      override fun putValue(
        s: String,
        obj: Any,
      ) {
        throw UnsupportedOperationException()
      }
    
      override fun removeValue(s: String) {
        throw UnsupportedOperationException()
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java

                data.setContent(EntityUtils.toString(response.getEntity(), Charsets.UTF_8));
                final Header[] headers = response.getAllHeaders();
                for (final Header header : headers) {
                    data.putValue(header.getName(), header.getValue());
                }
            } catch (final IOException e) {
                throw new ExtractException(e);
            } finally {
                if (accessTimeout != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/PdfExtractor.java

            }
        }
    
        protected void addMetadata(final ExtractData extractData, final String name, final String value) {
            if (value != null) {
                extractData.putValue(name, value);
            }
        }
    
        public long getTimeout() {
            return timeout;
        }
    
        public void setTimeout(final long timeout) {
            this.timeout = timeout;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top