Class DbIpLineReader
- java.lang.Object
-
- technology.dice.dicewhere.reading.CSVLineReader
-
- technology.dice.dicewhere.provider.dbip.reading.DbIpLineReader
-
- All Implemented Interfaces:
SourceReader
- Direct Known Subclasses:
DbIpCityLiteLineReader,DbIpCountryLiteLineReader,DbIpLocationAndIspLineReader
public abstract class DbIpLineReader extends CSVLineReader
-
-
Field Summary
-
Fields inherited from class technology.dice.dicewhere.reading.CSVLineReader
MAGIC_ZIP, MAGIG_GZIP
-
-
Constructor Summary
Constructors Constructor Description DbIpLineReader(Path csv)DbIpLineReader(Path csv, Decorator<? extends DecoratorInformation> decorator)DbIpLineReader(Path csv, Decorator<? extends DecoratorInformation> decorator, MapDbDatabaseBuilder.StorageMode storageMode)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract LineParserbuildLineParser(Decorator<? extends DecoratorInformation> decorator)protected Stream<String>lines()LineParserparser()ProviderKeyprovider()-
Methods inherited from class technology.dice.dicewhere.reading.CSVLineReader
bufferedReaderForPath, read
-
-
-
-
Constructor Detail
-
DbIpLineReader
public DbIpLineReader(@NotNull Path csv)
-
DbIpLineReader
public DbIpLineReader(@NotNull Path csv, @Nullable Decorator<? extends DecoratorInformation> decorator)
-
DbIpLineReader
public DbIpLineReader(@NotNull Path csv, @Nullable Decorator<? extends DecoratorInformation> decorator, @NotNull MapDbDatabaseBuilder.StorageMode storageMode)
-
-
Method Detail
-
buildLineParser
public abstract LineParser buildLineParser(Decorator<? extends DecoratorInformation> decorator)
-
lines
protected Stream<String> lines() throws IOException
- Specified by:
linesin classCSVLineReader- Throws:
IOException
-
provider
public ProviderKey provider()
- Specified by:
providerin interfaceSourceReader- Specified by:
providerin classCSVLineReader
-
parser
public LineParser parser()
- Specified by:
parserin classCSVLineReader
-
-