Hey Craig,
A few months ago I asked the questions below. Does
your response imply that there is no way to get the
vector's size -- only the size of what's in it? I was
hoping that the applet of the client side could read
in a vector and not individual bytes. How would I go
about reconstructing these bytes into the objects I
need?
Thanks,
James Wilson
--- "Craig R. McClanahan" <[EMAIL PROTECTED]>
wrote:
> James Wilson wrote:
>
> > response.setContentlength(int)
> > What is the best way to determine what size your
> > response object is? I'm sending a Vector object
> that
> > contains many different types of objects. How do
> I
> > figure out what size the vector whould be?
> >
>
> One way would be to serialize the Vector to a
> ByteArrayOutputStream and then
> call that stream's size() method. After setting the
> content length correctly,
> you can ask call toByteArray() to get a real array,
> and just copy the bytes to
> your ServletOutputStream.
>
> > James Wilson
>
> Craig McClanahan
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
=====
------------------------------------------------------------
James Wilson
HealthFirst Corporation
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html