Class MaxmindDbReader
- java.lang.Object
-
- technology.dice.dicewhere.reading.CSVLineReader
-
- technology.dice.dicewhere.provider.maxmind.reading.MaxmindDbReader
-
- All Implemented Interfaces:
SourceReader
public class MaxmindDbReader extends CSVLineReader
-
-
Field Summary
-
Fields inherited from class technology.dice.dicewhere.reading.CSVLineReader
MAGIC_ZIP, MAGIG_GZIP
-
-
Constructor Summary
Constructors Constructor Description MaxmindDbReader(Path locationNames, Path ipV4CSV, Path ipV6CSV)MaxmindDbReader(Path locationNames, Path ipV4CSV, Path ipV6CSV, Decorator<? extends DecoratorInformation> decorator)MaxmindDbReader(Path locationNames, Path ipV4CSV, Path ipV6CSV, Decorator<? extends DecoratorInformation> decorator, MapDbDatabaseBuilder.StorageMode storageMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stream<String>lines()LineParserparser()ProviderKeyprovider()-
Methods inherited from class technology.dice.dicewhere.reading.CSVLineReader
bufferedReaderForPath, read
-
-
-
-
Constructor Detail
-
MaxmindDbReader
public MaxmindDbReader(@NotNull Path locationNames, @NotNull Path ipV4CSV, @NotNull Path ipV6CSV) throws IOException- Throws:
IOException
-
MaxmindDbReader
public MaxmindDbReader(@NotNull Path locationNames, @NotNull Path ipV4CSV, @NotNull Path ipV6CSV, @Nullable Decorator<? extends DecoratorInformation> decorator) throws IOException- Throws:
IOException
-
MaxmindDbReader
public MaxmindDbReader(@NotNull Path locationNames, @NotNull Path ipV4CSV, @NotNull Path ipV6CSV, @Nullable Decorator<? extends DecoratorInformation> decorator, @NotNull MapDbDatabaseBuilder.StorageMode storageMode) throws IOException- Throws:
IOException
-
-
Method Detail
-
parser
public LineParser parser()
- Specified by:
parserin classCSVLineReader
-
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
-
-