I forgot to mention, I also propose adding the same function to XWikiAttachmentContent
On 10/15/2010 09:17 AM, Caleb James DeLisle wrote:
This is just a small API change proposal. Since my
implementation changes for XWikiAttachment store
the attachment content in a temp file rather than a byte array, there is no need to
require the user
to provide the length of the provided stream and in many cases (upload for instance) this
number is
very difficult to determine in advance.
I propose we add:
public void setContent(InputStream is) throws IOException
In addition to the existing:
public void setContent(InputStream is, int length) throws IOException
WDYT?
Caleb
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs