Well, it looks like you've correctly defined the fire:
RS2Object fire = getObjects().closest("Fire");
Then all you have to do is select the item in your inventory:
getInventory().interact("Trout", "Use");
.. and once that is selected (you will have to add checks for this), you can interact with the fire:
fire.interact("Use");
-Apa