Class CsvFileItemInput<I extends Item>

  • All Implemented Interfaces:
    com.github.akurilov.commons.io.file.FileInput<I>, com.github.akurilov.commons.io.file.FileIo, com.github.akurilov.commons.io.Input<I>, java.lang.AutoCloseable, java.util.function.Supplier<I>

    public class CsvFileItemInput<I extends Item>
    extends CsvItemInput<I>
    implements com.github.akurilov.commons.io.file.FileInput<I>
    Created by kurila on 30.06.15.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.file.Path itemsFilePath  
      • Fields inherited from interface com.github.akurilov.commons.io.file.FileIo

        INPUT_OPEN_OPTIONS, OUTPUT_OPEN_OPTIONS
      • Fields inherited from interface com.github.akurilov.commons.io.Input

        DELIMITER
    • Constructor Summary

      Constructors 
      Constructor Description
      CsvFileItemInput​(java.nio.file.Path itemsFilePath, ItemFactory<I> itemFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.Path filePath()  
      void reset()
      Most probably will cause an IOException due to missing mark
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.AutoCloseable

        close
      • Methods inherited from interface com.github.akurilov.commons.io.Input

        get, get, skip
    • Field Detail

      • itemsFilePath

        protected final java.nio.file.Path itemsFilePath
    • Constructor Detail

      • CsvFileItemInput

        public CsvFileItemInput​(java.nio.file.Path itemsFilePath,
                                ItemFactory<I> itemFactory)
                         throws java.io.IOException,
                                java.lang.NoSuchMethodException
        Parameters:
        itemsFilePath - the input stream to get the data item records from
        itemFactory - the concrete item factory
        Throws:
        java.io.IOException
        java.lang.NoSuchMethodException
    • Method Detail

      • filePath

        public final java.nio.file.Path filePath()
        Specified by:
        filePath in interface com.github.akurilov.commons.io.file.FileIo
      • reset

        public void reset()
        Description copied from class: CsvItemInput
        Most probably will cause an IOException due to missing mark
        Specified by:
        reset in interface com.github.akurilov.commons.io.Input<I extends Item>
        Overrides:
        reset in class CsvItemInput<I extends Item>