Class CsvFileItemOutput<I extends Item>

  • All Implemented Interfaces:
    com.github.akurilov.commons.io.file.FileIo, com.github.akurilov.commons.io.file.FileOutput<I>, com.github.akurilov.commons.io.Output<I>, java.lang.AutoCloseable, java.util.function.Consumer<I>

    public class CsvFileItemOutput<I extends Item>
    extends CsvItemOutput<I>
    implements com.github.akurilov.commons.io.file.FileOutput<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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.Path filePath()  
      CsvFileItemInput<I> getInput()  
      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 java.util.function.Consumer

        andThen
      • Methods inherited from interface com.github.akurilov.commons.io.Output

        accept, put, put, put
    • Field Detail

      • itemsFilePath

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

      • CsvFileItemOutput

        public CsvFileItemOutput​(java.nio.file.Path itemsFilePath,
                                 ItemFactory<I> itemFactory)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • CsvFileItemOutput

        public CsvFileItemOutput​(ItemFactory<I> itemFactory)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getInput

        public CsvFileItemInput<I> getInput()
        Specified by:
        getInput in interface com.github.akurilov.commons.io.Output<I extends Item>
      • filePath

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