🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7533

Re: Compressed objects thru sockets??

#7533
From: MarkW
Date: Tue, 05 Jun 2001 07:46
46 lines
2219 bytes
Hi Torsten,
thanks for your input.
Your solution is to wrap the outputstream. But how could i compress and
decompress objects?
If you could give me an example that would be great!

Thanks,
Mark

"Torsten Welches" <torsten.welches@who.cares.netcologne.de> schrieb im
Newsbeitrag news:3b1b5e38_2@dnews...
> Mark,
>
> just wrap your ObjectOutputStream around a
> java.util.zip.DeflaterOutputStream.
>
>     DeflaterOutputStream dos = new
> DeflaterOutputStream(socket.getOutputStream());
>     ObjectOutputStream oos = new ObjectOutputStream(dos);
>
> Torsten
>
> MarkW schrieb in Nachricht <3b17b482$2_2@dnews>...
> >Hi people,
> >i�m trying desparately to send ** compressed ** objects thru an
> >ObjectOutputStream.
> >How can i gzip the objects on the server and then ungzip them on the
> >client??
> >I�ve seen lots of examples of zipping files etc. but none of zipping
> >objects.
> >Of course I would have loved to directly compress the OutputStream but
this
> >doesn�t apparently work
> >(see www.jguru.com/faq/view.jsp?EID=3823) the author suggests a solution
> but
> >I need a code-example in order to understand.
> >
> >Anybody got an idea?
> >Greetings,
> >Mark
> >
> >
>
>
>
>
Technical Details
Message-ID: <3b1c8e36_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-hub.cableinet.net!blueyonder!newspeer.clara.net!news.clara.net!colt.net!news0.de.colt.net!news-fra1.dfn.de!news-koe1.dfn.de!RRZ.Uni-Koeln.DE!nntp.CS.Uni-Magdeburg.De!PeerFeed.KWeb.on.ca!dnews
References: <3b17b482$2_2@dnews> <3b1b5e38_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,2ce7263a57c8a607
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-05 01:01:06 PST
From: "MarkW" <xx@yy.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b17b482$2_2@dnews> <3b1b5e38_2@dnews>
Subject: Re: Compressed objects thru sockets??
Date: Tue, 5 Jun 2001 09:46:37 +0200
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 149.225.113.183
Message-ID: <3b1c8e36_1@dnews>
X-Trace: dnews 991727158 149.225.113.183 (5 Jun 2001 00:45:58 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-hub.cableinet.net!blueyonder!newspeer.clara.net!news.clara.net!colt.net!news0.de.colt.net!news-fra1.dfn.de!news-koe1.dfn.de!RRZ.Uni-Koeln.DE!nntp.CS.Uni-Magdeburg.De!PeerFeed.KWeb.on.ca!dnews