- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for XPathAPI (0.14 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XPathAPI.java
import org.w3c.dom.Node; /** * The XPathAPI class provides methods to evaluate XPath expressions and select nodes or node lists from an XML document. * It uses the javax.xml.xpath.XPath and javax.xml.xpath.XPathFactory classes to create and evaluate XPath expressions. * * <p>Example usage:</p> * <pre> * {@code * XPathAPI xPathAPI = new XPathAPI(); * NodeList nodes = xPathAPI.selectNodeList(contextNode, "//example");
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 4.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlXpathExtractor.java
protected String targetNodePath = "//HTML/BODY | //@alt | //@title"; /** Cache for XPathAPI instances to improve performance. */ protected LoadingCache<String, XPathAPI> xpathAPICache; /** Cache duration in minutes for XPathAPI instances. */ protected long cacheDuration = 10; // min /** * Creates a new HtmlXpathExtractor instance. */
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 10.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlExtractor.java
} /** * Gets a thread-local XPathAPI instance for thread-safe XPath evaluation. * * @return the XPathAPI instance for the current thread */ protected XPathAPI getXPathAPI() { XPathAPI cachedXPathAPI = xpathAPI.get(); if (cachedXPathAPI == null) { cachedXPathAPI = new XPathAPI(); xpathAPI.set(cachedXPathAPI); }
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 9.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java
@Override public XPathAPI load(final String key) { if (logger.isDebugEnabled()) { logger.debug("created XPathAPI by {}", key); } return new XPathAPI(); } }); }
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 23.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java
* Gets the XPath API instance for this thread. * * @return the XPath API instance */ protected XPathAPI getXPathAPI() { XPathAPI cachedXPathAPI = xpathAPI.get(); if (cachedXPathAPI == null) { cachedXPathAPI = new XPathAPI(); xpathAPI.set(cachedXPathAPI); } return cachedXPathAPI; } /**
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 28.5K bytes - Viewed (0)