> > > 1. Take any java object as input and get the bytes of the string returned > > from toString method on the object. > > > > Yes. It would allow any java object and byte[] will be derived from the > toString(). If input is byte[]; then it would be passed on without any > conversion. > > Relying on toString() does not seem appropriate. Since you want the operator configurable, why not let the user configure how to serialize the data. Default could be JSON.
Thanks
