Class SlicedTextDataLoader

All Implemented Interfaces:
DataLoader

public class SlicedTextDataLoader extends AbstractTextDataLoader
Returns a sequence of strings based on a plain text file, where the specified symbol is used as separator. For more information please read the FMPP Manual.
  • Constructor Details

    • SlicedTextDataLoader

      public SlicedTextDataLoader()
  • Method Details

    • parseText

      protected final Object parseText(String text) throws Exception
      Description copied from class: AbstractTextDataLoader
      Parses the file content to the final object that the data loader will return.
      Specified by:
      parseText in class AbstractTextDataLoader
      Parameters:
      text - the content of the text file
      Returns:
      the return value of the data loader
      Throws:
      Exception
    • postProcessItems

      protected List postProcessItems(List items)
      Override this if you want to post-process the items.
      Parameters:
      items - the list of String-s that the standard slicedText data loader would return.
      Returns:
      the final return value of the custom data loader.
    • parseExtraArguments

      protected final String parseExtraArguments(List args) throws Exception
      Description copied from class: AbstractTextDataLoader
      Parses the argument list, except the 1st (file name) argument.
      Specified by:
      parseExtraArguments in class AbstractTextDataLoader
      Parameters:
      args - the arguments (all of them, starting from the 1st)
      Returns:
      the encoding given with the extra arguments, or null if the encoding was not specified. In the latest case the encoding will default to the source encoding engine parameter (the sourceEncoding setting).
      Throws:
      Exception