Class InputFilesMapElement


  • public class InputFilesMapElement
    extends java.lang.Object
    The data of an input file.
    • Constructor Summary

      Constructors 
      Constructor Description
      InputFilesMapElement​(java.io.File inputFile, java.lang.String tokenDelimiter, java.lang.String commentTag, boolean cyclicRead, boolean randomizeLines, boolean trimValues, boolean removeDoubleQuotes)
      Create a new instance and read the input file into memory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getNextLineTokens()
      Get the next line and split it into tokens - This method is thread safe.
      • Methods inherited from class java.lang.Object

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

      • InputFilesMapElement

        public InputFilesMapElement​(java.io.File inputFile,
                                    java.lang.String tokenDelimiter,
                                    java.lang.String commentTag,
                                    boolean cyclicRead,
                                    boolean randomizeLines,
                                    boolean trimValues,
                                    boolean removeDoubleQuotes)
                             throws java.io.IOException
        Create a new instance and read the input file into memory.
        Parameters:
        inputFile - the input file
        tokenDelimiter - the token delimiter
        commentTag - the comment tag
        cyclicRead - if true then cyclic read is enabled
        randomizeLines - if true then randomize the order of the lines
        trimValues - if true then trim the values of the tokens
        removeDoubleQuotes - if true the remove double quotes from the start and the end of the tokens
        Throws:
        java.io.IOException - if reading the input file has failed
    • Method Detail

      • getNextLineTokens

        public java.lang.String[] getNextLineTokens()
        Get the next line and split it into tokens - This method is thread safe.
        Returns:
        the tokens of the line, or null if ('cyclic read' is disabled AND 'end of file' is reached)