Article View: borland.public.jbuilder.java.language
Article #7662Re: Compressed objects thru sockets??
From: Torsten Welches
Date: Mon, 04 Jun 2001 08:54
Date: Mon, 04 Jun 2001 08:54
30 lines
1672 bytes
1672 bytes
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:
<3b1b4c82_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!news.algonet.se!algonet!newsfeed1.uni2.dk!newssuck.uni2.dk!dnewsReferences:
<3b17b482$2_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-04 02:10:42 PST From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Newsgroups: borland.public.jbuilder.java.language References: <3b17b482$2_2@dnews> Subject: Re: Compressed objects thru sockets?? Date: Mon, 4 Jun 2001 10:54:48 +0200 Lines: 32 X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 NNTP-Posting-Host: 194.8.205.214 Message-ID: <3b1b4c82_2@dnews> X-Trace: dnews 991644802 194.8.205.214 (4 Jun 2001 01:53:22 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!news.algonet.se!algonet!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews