- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for XPathAPI (0.18 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XPathAPI.java
import javax.xml.xpath.XPathFactory; import javax.xml.xpath.XPathNodes; import org.codelibs.fess.crawler.exception.CrawlerSystemException; import org.w3c.dom.Node; public class XPathAPI { private final XPath xPath; public XPathAPI() { xPath = createXPath(f -> {}); } public XPath createXPath(final Consumer<XPathFactory> builder) { try {
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 3.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlExtractor.java
} return parser; } protected XPathAPI getXPathAPI() { XPathAPI cachedXPathAPI = xpathAPI.get(); if (cachedXPathAPI == null) { cachedXPathAPI = new XPathAPI(); xpathAPI.set(cachedXPathAPI); } return cachedXPathAPI; }
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 6.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlXpathExtractor.java
protected LoadingCache<String, XPathAPI> xpathAPICache; protected long cacheDuration = 10; // min @Resource public void init() { xpathAPICache = CacheBuilder.newBuilder().expireAfterAccess(cacheDuration, TimeUnit.MINUTES).build(new CacheLoader<String, XPathAPI>() { @Override public XPathAPI load(final String key) {
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 7K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java
childUrlRuleMap.put(tagName, attrName); } } protected XPathAPI getXPathAPI() { XPathAPI cachedXPathAPI = xpathAPI.get(); if (cachedXPathAPI == null) { cachedXPathAPI = new XPathAPI(); xpathAPI.set(cachedXPathAPI); } return cachedXPathAPI; }
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 18.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java
final XPath xPathApi = getXPathAPI().createXPath(f -> {}); xPathApi.setNamespaceContext(new DefaultNamespaceContext(doc.getNodeType() == Node.DOCUMENT_NODE ? doc.getDocumentElement() : doc)); return xPathApi.evaluateExpression(xpath, doc, XPathNodes.class); } protected XPathAPI getXPathAPI() { try {
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 17.9K bytes - Viewed (0)