org.licas.query

## Class DocumentReader

- java.lang.Object
- - org.licas.query.DocumentReader

-     public class DocumentReader
      extends java.lang.Object

  Read a document into text. Can try to find a binary reader to parse word files.
  Author:
    Kieran Greer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DocumentReader()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `checkForBinaryReader()` Check if a jar file with a binary reader is available and create if it is.
    `static java.lang.String` | `readDocument(java.lang.String filePath)` Read a document into a text string.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DocumentReader

          public DocumentReader()

  - ### Method Detail

    - #### readDocument

          public static java.lang.String readDocument(java.lang.String filePath)
                                               throws java.lang.Exception

      Read a document into a text string. Check for a binary reader first.
      Parameters:
        `filePath` - the document file path.
      Returns:
        the parsed text.
      Throws:
        `java.lang.Exception` - any error.

    - #### checkForBinaryReader

          public static void checkForBinaryReader()

      Check if a jar file with a binary reader is available and create if it is.