DaisyDiff是一个Java语言用来比较两个HTML文档差异的库。
示例:
org.outerj.daisy.diff.DaisyDiff{/** *Diffstwohtmlfiles,outputtingtheresulttothespecifiedconsumer. */publicstaticvoiddiffHTML(InputSourceoldSource,InputSourcenewSource,ContentHandlerconsumer,Stringprefix,Localelocale)throwsSAXException,IOException;/** *Diffstwohtmlfileswordforwordassource,outputtingtheresultto *thespecifiedconsumer. */ publicstaticvoiddiffTag(StringoldText,StringnewText,ContentHandlerconsumer)throwsException;}
评论