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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String parseExtraArguments​(java.util.List args)
      Parses the argument list, except the 1st (file name) argument.
      protected java.lang.Object parseText​(java.lang.String text)
      Parses the file content to the final object that the data loader will return.
      protected java.util.List postProcessItems​(java.util.List items)
      Override this if you want to post-process the items.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SlicedTextDataLoader

        public SlicedTextDataLoader()
    • Method Detail

      • parseText

        protected final java.lang.Object parseText​(java.lang.String text)
                                            throws java.lang.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:
        java.lang.Exception
      • postProcessItems

        protected java.util.List postProcessItems​(java.util.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 java.lang.String parseExtraArguments​(java.util.List args)
                                                      throws java.lang.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:
        java.lang.Exception