Hi all.
I need to modify the content (plain/text) of an existing node programatically. At first, I thought to use the ContentWriter class and its put() method.
I have to replace the content of a node entirely so I tried to get the ContentReader associated to the node, to store it into a String variable, to modify the string itself accordingly to my custom needs, then to write the new string to the ContentWriter. I noticed that the put() method does not replace the content but appends a new content to the old one, doesn't it?
How can I update the content of a node? Can I use the ContentReader class or should I prefer other classes?
Any suggestion will be very appreciated.
All the best,
Sergio