Posted by kirillcool
on February 8, 2005 at 11:21 AM PST
Original request - Allow marshaling to StringBuffer and unmarshaling from CharSequence. I am really tired of wrapping these with streams, readers and writers.
Kohsuke response - We added marshal/unmarshal that read/write from Reader/Writer. Supporting StringBuffer seems to be interesting, but doing that for CharSequence seems bit dangerous because when you pass in String, it means a system ID, not a string that looks like XML.
I think that StringBuffer should not be overlooked, although i guess you will provide the same wrapper as i made in the example code. You are right about system ID for unmarshalling, may be provide additional method, say unmarshalString()?