You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Al Byers <by...@automationgroups.com> on 2008/03/24 21:30:01 UTC

FileItem returns HeapByteBuffer

I am using OFBiz and commons-fileupload-1.2 and fileItem.get returns a
java.nio.HeapByteBuffer objects and I don't know why when the api specifies
a byte [] return. OFBiz is working with Tomcat 6.0.

Furthermore, I don't know what to do with it. I cannot find
java.nio.HeapByteBuffer in any version of the Java API. Where is it?

Could anyone please shed some light on this for me? Anyway to control what
FileItem returns?

Thanks,

-Al Byers

Re: FileItem returns HeapByteBuffer

Posted by Hanson Char <ha...@gmail.com>.
It's in jdk5+, java.nio.HeapByteBuffer is package private.

Hanson

On Mon, Mar 24, 2008 at 1:30 PM, Al Byers <by...@automationgroups.com>
wrote:

> I am using OFBiz and commons-fileupload-1.2 and fileItem.get returns a
> java.nio.HeapByteBuffer objects and I don't know why when the api
> specifies
> a byte [] return. OFBiz is working with Tomcat 6.0.
>
> Furthermore, I don't know what to do with it. I cannot find
> java.nio.HeapByteBuffer in any version of the Java API. Where is it?
>
> Could anyone please shed some light on this for me? Anyway to control what
> FileItem returns?
>
> Thanks,
>
> -Al Byers
>