[Building Sakai] ResourcesToolActionPipe: When does it "stream" ?

Branden Visser branden at uwindsor.ca
Tue Oct 13 12:24:06 PDT 2009


Hi all,

When will the ResourcesToolActionPipe hold a stream instead of the 
binary content?

The JavaDoc states when it is a certain size or type [1], but does 
anyone know where those boundaries are? Plain english or a pointer to a 
java file will do.

Looking forward, would it be a best practice to always use a stream 
instead of a byte array until the last possibly minute? If so, can we 
@Deprecate the content methods that are using byte[] ?

Cheers,
Branden

[1] 
http://qa1-nl.sakaiproject.org/codereview/trunk/api/org/sakaiproject/content/api/ResourceToolActionPipe.java.html#58


More information about the sakai-dev mailing list