+1
On Fri, Oct 15, 2010 at 15:17, Caleb James DeLisle
<calebdelisle(a)lavabit.com> 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
--
Thomas Mortagne