Java - 方法 replace() 未定义 OutputDocument 类型



嘿,我在Java EE项目上使用Eclipse,它显示了问题

方法替换(元素,字符串(未定义类型 输出文档

我已经导入了 au.id.jericho.lib.html.OutputDocument 库,我不知道还能做什么

这是它被使用的地方

for (Iterator i = linkStartTags.iterator(); i.hasNext();) {
     Element el = (Element)i.next();
     Attributes attributes = el.getAttributes();
     String rel = attributes.getValue(atributo);
     if ((rel != null) && (!"".equalsIgnoreCase(rel)))
     {
       if ((valores != null) && 
         (valores.containsKey(rel))) {
         String valor = (String)valores.get(rel);
         outputDocument.replace(el, valor);
       }
     }
   }

附言我没有写这段代码。

编辑:我使用了错误版本的库,我使用的是 jericho-html-2.1,我更改为 jericho-html-2.3,现在它正在工作,谢谢

解决方案:

我使用了错误版本的库,我使用的是 jericho-html-2.1,

我更改为 jericho-html-2.3,现在它正在工作谢谢

最新更新