title: Feed formats other than pbf to Osmosis
body: <p>I've written code in Java using the <a href="https://wiki.openstreetmap.org/wiki/Osmosis" rel="nofollow noreferrer">Osmosis</a> framework and specifically OsmosisReader for Java, for OSM processing.</p>
  <p>As far as I understand, OsmosisReader can only work with <code>*.pbf</code> files, which means I need to convert <code>.osm</code> files before using them (which I'm currently doing with <a href="https://wiki.openstreetmap.org/wiki/Osmconvert" rel="nofollow noreferrer">osmconvert</a>).</p>
  <p>Is there a way to use other OSM formats with OsmosisReader? And if not, is there a way to convert the file format through the code (preferably with Osmosis)?</p>