Package com.emc.mongoose.base.item.io
Class CsvFileItemInput<I extends Item>
- java.lang.Object
-
- com.emc.mongoose.base.item.io.CsvItemInput<I>
-
- com.emc.mongoose.base.item.io.CsvFileItemInput<I>
-
- 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.PathitemsFilePath-
Fields inherited from class com.emc.mongoose.base.item.io.CsvItemInput
itemFactory, itemsSrc
-
-
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.PathfilePath()voidreset()Most probably will cause an IOException due to missing markjava.lang.StringtoString()-
Methods inherited from class com.emc.mongoose.base.item.io.CsvItemInput
close, get, get, setItemsSrc, skip
-
-
-
-
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 fromitemFactory- the concrete item factory- Throws:
java.io.IOExceptionjava.lang.NoSuchMethodException
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCsvItemInput<I extends Item>
-
filePath
public final java.nio.file.Path filePath()
- Specified by:
filePathin interfacecom.github.akurilov.commons.io.file.FileIo
-
reset
public void reset()
Description copied from class:CsvItemInputMost probably will cause an IOException due to missing mark
-
-