Class MaxmindVpnDecoratorDbReader
- java.lang.Object
-
- technology.dice.dicewhere.decorator.DecoratorDbReader<VpnDecoratorInformation>
-
- technology.dice.dicewhere.provider.maxmind.decorator.MaxmindVpnDecoratorDbReader
-
public class MaxmindVpnDecoratorDbReader extends DecoratorDbReader<VpnDecoratorInformation>
Reads Maxmind Anonymous db and identifies VPN entries.
-
-
Constructor Summary
Constructors Constructor Description MaxmindVpnDecoratorDbReader(BufferedReader ipV4AnonymousDatabase, BufferedReader ipV6AnonymousDatabase)MaxmindVpnDecoratorDbReader(Path ipV4AnonymousDatabase, Path ipV6AnonymousDatabase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Optional<VpnDecoratorInformation>parseDbLine(String line)Update README.MD if this method is moved out or there is a change in behaviorprotected Optional<VpnDecoratorInformation>readNextLine()-
Methods inherited from class technology.dice.dicewhere.decorator.DecoratorDbReader
fetchForRange, getLastFetched, setLastFetched
-
-
-
-
Constructor Detail
-
MaxmindVpnDecoratorDbReader
public MaxmindVpnDecoratorDbReader(Path ipV4AnonymousDatabase, Path ipV6AnonymousDatabase) throws IOException
- Throws:
IOException
-
MaxmindVpnDecoratorDbReader
public MaxmindVpnDecoratorDbReader(BufferedReader ipV4AnonymousDatabase, BufferedReader ipV6AnonymousDatabase) throws IOException
- Throws:
IOException
-
-
Method Detail
-
readNextLine
protected Optional<VpnDecoratorInformation> readNextLine()
- Specified by:
readNextLinein classDecoratorDbReader<VpnDecoratorInformation>
-
parseDbLine
protected Optional<VpnDecoratorInformation> parseDbLine(String line)
Update README.MD if this method is moved out or there is a change in behavior- Specified by:
parseDbLinein classDecoratorDbReader<VpnDecoratorInformation>
-
-