Article View: borland.public.jbuilder.java.api
Article #2994Re: ObjectStreams over Compressed Sockets
From: William Yu
Date: Wed, 17 Jun 1998 00:00
Date: Wed, 17 Jun 1998 00:00
25 lines
1575 bytes
1575 bytes
Regis Eloi wrote: > > William Yu wrote: > > > > The above works great -- except for one issue. If the compression buffer > > is not filled, objects sit in the write queue. Any insight on the next > > logical step? > > I think you have to call the flush method on your streams. > Something like: > zip_out.flush(); No dice. This was one of the first commands I tried and absolutely nothing happens. If you look at the API documentation, you will notice that flush is not listed under methods -- it's probably overridden to do nothing since flushing the output buffer before the zip streams have a chance to compress the buffer would cause some problems. The finish() method does work -- but it closes up all the resources and you can't use the stream anymore. Hmmm, I suppose I could open & close the Zip & Object streams for every discrete operation. I'm going to need a network traffic analyzer to see what type of bandwidth this would suck up.
Technical Details
Message-ID:
<35881CFF.12DA0199@Bigfoot.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3586F17B.47E70646@Bigfoot.com> <35878ED5.716AAD75@dcs.hull.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,c0a4ae4801217f6f X-Google-Attributes: gid1089d0,public From: William Yu <William_Yu@Bigfoot.com> Subject: Re: ObjectStreams over Compressed Sockets Date: 1998/06/17 Message-ID: <35881CFF.12DA0199@Bigfoot.com> X-Deja-AN: 363616682 Content-Transfer-Encoding: 7bit References: <3586F17B.47E70646@Bigfoot.com> <35878ED5.716AAD75@dcs.hull.ac.uk> To: R.Eloi@dcs.hull.ac.uk Content-Type: text/plain; charset=us-ascii Organization: American All-Risk Group (AARG) Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api