[opencms-dev] Writing a plain text file

Alexander Kandzior alex at opencms.org
Sun Feb 20 08:33:29 CET 2005


Steve,

> Am I stuck using a CmsFile object and writing a byte array to 
> it? 

In short, yes. OpenCms dosent handle streams in it's repository.

> This doesn't seem to allow for string to be appended to 
> the file, and it doesn't seem to be really what I want.

Denpending on what you want, you probably could write some code where the
content of a CmsResource is handled by ByteArrayInput/Output streams.
Something like a static method that does all this internally for you.

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com




More information about the opencms-dev mailing list