SEARU.ORG
当前位置:SEARU.ORG > Linux 软件 > 正文

HTML差异比较 Daisy Diff

Daisy Diff 是一个 Java 语言用来比较两个 HTML 文档差异的库。

示例:

org.outerj.daisy.diff.DaisyDiff{

/**
 * Diffs two html files, outputting the result to the specified consumer.
 */
public static void diffHTML(InputSource oldSource, InputSource newSource, ContentHandler consumer, String prefix, Locale locale) throws SAXException, IOException;

/**
 * Diffs two html files word for word as source, outputting the result to
 * the specified consumer.
 */            
public static void diffTag(String oldText, String newText, ContentHandler consumer) throws Exception;

}

未经允许不得转载:SEARU.ORG » HTML差异比较 Daisy Diff

赞 (0)
分享到:更多 ()

评论 0