org.janux.bus.processor
Interface ObjectFormatter

All Superinterfaces:
Processor
All Known Implementing Classes:
ObjectFormatterAbstract

public interface ObjectFormatter
extends Processor

Base interface to represent any sort of class that takes an Object as it input and returns a String as output; Derived classes that extend ObjectFormatterAbstract, only need to implement the format(Object) as that class provides a convenience implementation of Processor.process(InputStream, OutputStream) that turns the 'in' InputStream into a String, calls ObjectFormatterAbstract.format(Object), and pipes the String returned to the 'out' OutputStream.

Since:
version 0.2.04 - Jun 20, 2007
Author:
Philippe Paravicini
See Also:
ObjectFormatterAbstract

Method Summary
 String format(Object o)
           
 
Methods inherited from interface org.janux.bus.processor.Processor
process
 

Method Detail

format

String format(Object o)


Copyright © 2005-2013 Janux. All Rights Reserved.