I have actually been considering this, but haven’t done it yet as the ruuvitag-sensor python library is usually the choice for custom implementations while the main goal for RuuviCollector is being a “full software” to glue the gap between RuuviTags and InfluxDB (and other databases in the future).
Though if there’s interest in having a similar library for Java, I may reconsider separating the pieces into a library and publish to maven central or something.