Class AHCompareDocuments


  • public class AHCompareDocuments
    extends java.lang.Object
    Compare two documents
    Version:
    1.0 2022/01/31
    Author:
    Copyright (c) 2022 Antenna House, Inc. All rights reserved.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void compareDocuments​(java.lang.String originalFilePath, java.lang.String revisedFilePath, java.lang.String outputFilePath)
      Perform document comparison
      void createComparativeTable​(java.lang.String originalFilePath, java.lang.String revisedFilePath, java.lang.String outputFilePath)
      Create comparison table
      ChangedRatio parseChangedRatio​(java.lang.String originalFilePath, java.lang.String revisedFilePath)
      Parsing the document changed ratio
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AHCompareDocuments

        public AHCompareDocuments()
        Constructor.\n
    • Method Detail

      • compareDocuments

        public void compareDocuments​(java.lang.String originalFilePath,
                                     java.lang.String revisedFilePath,
                                     java.lang.String outputFilePath)
                              throws AHOOXMLDocxManagerException,
                                     java.io.IOException,
                                     java.lang.InterruptedException
        Perform document comparison
        Parameters:
        originalFilePath - Original file path
        revisedFilePath - Revised file path
        outputFilePath - Output path of comparison results
        Throws:
        AHOOXMLDocxManagerException
        java.io.IOException
        java.lang.InterruptedException
      • createComparativeTable

        public void createComparativeTable​(java.lang.String originalFilePath,
                                           java.lang.String revisedFilePath,
                                           java.lang.String outputFilePath)
                                    throws AHOOXMLDocxManagerException,
                                           java.io.IOException,
                                           java.lang.InterruptedException
        Create comparison table
        Parameters:
        originalFilePath - Original file path
        revisedFilePath - Revised file path
        outputFilePath - Output path of comparison table
        Throws:
        AHOOXMLDocxManagerException
        java.io.IOException
        java.lang.InterruptedException
      • parseChangedRatio

        public ChangedRatio parseChangedRatio​(java.lang.String originalFilePath,
                                              java.lang.String revisedFilePath)
                                       throws AHOOXMLDocxManagerException,
                                              java.io.IOException,
                                              java.lang.InterruptedException
        Parsing the document changed ratio
        Parameters:
        originalFilePath - Original file path
        revisedFilePath - Revised file path
        Returns:
        Document changed ratio
        Throws:
        AHOOXMLDocxManagerException
        java.io.IOException
        java.lang.InterruptedException