Class TXTParser

  • All Implemented Interfaces:
    Parser

    public class TXTParser
    extends AbstractParser
    Class for parsing text (*.txt) files.
    Since:
    3.5
    Author:
    Michael Scholz, Alessandro Gasparini - LogicalDOC
    • Constructor Detail

      • TXTParser

        public TXTParser()
    • Method Detail

      • parse

        public String parse​(File file,
                            String filename,
                            String encoding,
                            Locale locale,
                            String tenant)
        Description copied from interface: Parser
        Same as the other method that accept an input stream, use this when you have a file rather than a stream.
        Specified by:
        parse in interface Parser
        Overrides:
        parse in class AbstractParser
        Parameters:
        file - the file
        filename - name of the file
        encoding - character encoding
        locale - the locale
        tenant - name of the tenant
        Returns:
        the extracted text