code: public static UserAgentParser parse(final Reader input, final Collection<BrowsCapField> fields)
              throws IOException, ParseException {
          return new UserAgentFileParser(fields).parse(input);
      }
docs: Parses a csv stream of rules.
  @param input The input stream
  @param fields The fields that should be stored during parsing
  @return a UserAgentParser based on the read rules
  @throws IOException If reading the stream failed.
  @throws ParseException