Package org.docx4j.diff

Examples of org.docx4j.diff.Differencer


    java.io.StringWriter sw = new java.io.StringWriter();
    javax.xml.transform.stream.StreamResult result = new javax.xml.transform.stream.StreamResult(
        sw);
    Calendar changeDate = null;
   
    Differencer pd = null;
    if (DIVIDE_AND_CONQUER) {

      Docx4jDriver.diff( XmlUtils.marshaltoW3CDomDocument(newerBody).getDocumentElement(),
          XmlUtils.marshaltoW3CDomDocument(olderBody).getDocumentElement(),
             sw);
        // The signature which takes Reader objects appears to be broken
     
    } else {

      pd = new Differencer();
      pd.setRelsDiffIdentifier("blagh"); // not necessary in this case
      pd.diff(newerBody, olderBody, result, "someone", changeDate,
          newerPackage.getMainDocumentPart().getRelationshipsPart(),
          olderPackage.getMainDocumentPart().getRelationshipsPart()
          );
    }
   
View Full Code Here

TOP

Related Classes of org.docx4j.diff.Differencer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.