Class LineParser
- java.lang.Object
-
- technology.dice.dicewhere.parsing.LineParser
-
- Direct Known Subclasses:
DbIpIpToCityLiteCSVLineParser,DbIpIpToCountryLiteCSVLineParser,DbIpIpToLocationAndIspCSVLineParser,MaxmindLineParser
public abstract class LineParser extends Object
-
-
Constructor Summary
Constructors Constructor Description LineParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Optional<Decorator<? extends DecoratorInformation>>getDecorator()Stream<ParsedLine>parse(RawLine rawLine, boolean retainOriginalLine)protected abstract IpInformationparseLine(RawLine rawLine, boolean retainOriginalLine)
-
-
-
Method Detail
-
getDecorator
public abstract Optional<Decorator<? extends DecoratorInformation>> getDecorator()
-
parse
public Stream<ParsedLine> parse(RawLine rawLine, boolean retainOriginalLine) throws LineParsingException
- Throws:
LineParsingException
-
parseLine
protected abstract IpInformation parseLine(RawLine rawLine, boolean retainOriginalLine) throws LineParsingException
- Throws:
LineParsingException
-
-