Class WholeFileTextFormat

    • Constructor Detail

      • WholeFileTextFormat

        public WholeFileTextFormat()
    • Method Detail

      • read

        public final MStream<Document> read​(Resource inputResource)
        Description copied from interface: DocFormat
        Reads documents in this format from the given input resource.
        Specified by:
        read in interface DocFormat
        Parameters:
        inputResource - the input resource
        Returns:
        the stream of documents read
      • readSingleFile

        protected abstract Stream<Document> readSingleFile​(String content)
        Converts the content of an entire file into one ore more documents.
        Parameters:
        content - the content
        Returns:
        the stream of documents.