Package com.blueconic.browscap.impl
Class UserAgentFileParser
java.lang.Object
com.blueconic.browscap.impl.UserAgentFileParser
This class is responsible for parsing rules and creating the efficient java representation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserAgentParserparse(Reader input, Collection<BrowsCapField> fields) Parses a csv stream of rules.
-
Method Details
-
parse
public static UserAgentParser parse(Reader input, Collection<BrowsCapField> fields) throws IOException, ParseException Parses a csv stream of rules.- Parameters:
input- The input streamfields- The fields that should be stored during parsing- Returns:
- a UserAgentParser based on the read rules
- Throws:
IOException- If reading the stream failed.ParseException
-