Class DocxInput

java.lang.Object
com.deltaxml.deltacheck.DocxInput

public class DocxInput extends Object

A representation of a Microsoft Word input file with a ".docx" extension. Further processing will extract the underlying XML required for conversion validation.

The outdated ".doc" format is not accepted as it is a binary file and can't be resolved to XML.

NOTE: Supplied input file must have a ".docx" extension!

Since:
0.1
Author:
Michael Polowczuk
  • Constructor Details

    • DocxInput

      public DocxInput(String path) throws FileNotFoundException
      Creates a new DocxInput.
      Parameters:
      path - either an absolute or a relative (to the JAR) path to an input file, located on the file system.
      Throws:
      FileNotFoundException - if the given path points to a non-existing file.
    • DocxInput

      public DocxInput(File file) throws FileNotFoundException
      Creates a new DocxInput.
      Parameters:
      file - an instance of a Java file object pointing to an input file.
      Throws:
      FileNotFoundException - if the given file doesn't exist.