Interface PlainTextLoader

    • Method Detail

      • parsePlainText

        Document parsePlainText​(String absoluteFilePath)
                         throws DRIexception
        Convert a plain text to a Document IMPORTANT: the text should be UTF-8 encoded
        Parameters:
        absoluteFilePath - the absolute path of the (plain) text file to convert
        Returns:
        Throws:
        DRIexception
      • parsePlainText

        Document parsePlainText​(File file)
                         throws DRIexception
        Convert a plain text to a Document IMPORTANT: the text should be UTF-8 encoded
        Parameters:
        file - the (plain) text file to import
        Returns:
        Throws:
        DRIexception
      • parsePlainText

        Document parsePlainText​(URL url)
                         throws DRIexception
        Convert a plain text to a Document IMPORTANT: the text should be UTF-8 encoded
        Parameters:
        url - the URL of the plain text file to convert
        Returns:
        Throws:
        DRIexception
      • parseString

        Document parseString​(String textToLoad,
                             String docName)
                      throws DRIexception
        Convert a plain text to a Document IMPORTANT: the text should be UTF-8 encoded
        Parameters:
        textToLoad - the plain text to load into the Document
        docName - the document name can be retrieved by the method Document.getName(). Left null or empty string if you do not need to specify any name for the document
        Returns:
        Throws:
        DRIexception