Class DbIpIpToLocationAndIspCSVLineParser
- java.lang.Object
-
- technology.dice.dicewhere.parsing.LineParser
-
- technology.dice.dicewhere.provider.dbip.parsing.DbIpIpToLocationAndIspCSVLineParser
-
public class DbIpIpToLocationAndIspCSVLineParser extends LineParser
Parser for DB-Ip's IP to Location + ISP db in CSV file format
At the time of writing this class, the documentation did not match the contents of the file. This parser, therefore, does not follow the link above, but rather the following format:
ip_start,ip_end,country,stateprov,district,city,zipcode,latitude,longitude,geoname_id,timezone_offset,timeszone_name,isp_name,connection_type,organization_name
-
-
Constructor Summary
Constructors Constructor Description DbIpIpToLocationAndIspCSVLineParser()DbIpIpToLocationAndIspCSVLineParser(Decorator<? extends DecoratorInformation> decorator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Decorator<? extends DecoratorInformation>>getDecorator()protected IpInformationparseLine(RawLine line, boolean retainOriginalLine)-
Methods inherited from class technology.dice.dicewhere.parsing.LineParser
parse
-
-
-
-
Constructor Detail
-
DbIpIpToLocationAndIspCSVLineParser
public DbIpIpToLocationAndIspCSVLineParser()
-
DbIpIpToLocationAndIspCSVLineParser
public DbIpIpToLocationAndIspCSVLineParser(Decorator<? extends DecoratorInformation> decorator)
-
-
Method Detail
-
getDecorator
public Optional<Decorator<? extends DecoratorInformation>> getDecorator()
- Specified by:
getDecoratorin classLineParser
-
parseLine
protected IpInformation parseLine(RawLine line, boolean retainOriginalLine) throws LineParsingException
- Specified by:
parseLinein classLineParser- Throws:
LineParsingException
-
-