::IO class: make format() method overrideable