Compressible Objects? (querY)

Hello All

I am new to this forum

I have some 6 months hands on Java Platform

I was just curious that since there is a lot of Network based applications being built in java, if there were some concept as a "compressible object" or a

"compressible interface" ... I have not found anything in this context inspite of a lot of searching.

If some1 can tell me more about this I would be very grateful

Wishes

[446 byte] By [Tangoa] at [2007-10-2 6:40:00]
# 1

> Hello All

> I am new to this forum

> I have some 6 months hands on Java Platform

> I was just curious that since there is a lot of

> Network based applications being built in java, if

> there were some concept as a "compressible object" or

> a

> "compressible interface" ... I have not found

> anything in this context inspite of a lot of

> searching.

Because there is nothing like that. You can control the bits you send over a network yourself, you can implement your own serialization/compression mechanism if you like.

CeciNEstPasUnProgrammeura at 2007-7-16 13:48:14 > top of Java-index,Java Essentials,Java Programming...
# 2
>if there were some concept as a "compressible object" or a>"compressible interface" ...why you are looking for this ?
intelchipa at 2007-7-16 13:48:14 > top of Java-index,Java Essentials,Java Programming...
# 3

> why you are looking for this ?

Cos less data takes less time to send over the network! :)

I have to warn that Serializable is SLOW! Probably your network beats the speed of converting the objects to bytes. And it has ALOT of overhead.

Come up with your own communication protocol, and compress the data you send with som quick compression, e.g. jzlib, lzop (only in c/c++ but extremely fast) etc.

Gil

gilroittoa at 2007-7-16 13:48:14 > top of Java-index,Java Essentials,Java Programming...
# 4

because there is a need

I need since I am working on a multiple server type of server in which one server exchanges info (and a lot of it) and we infact do do this through serialised objects yet the bandwidth intensity is quite high ...

also what expertise will I need to implement my own serialization class

cheers

Tangoa at 2007-7-16 13:48:14 > top of Java-index,Java Essentials,Java Programming...
# 5
Java does have built-in support for ZIP compression.Lookup the documentation of package java.util.zip in the API documentation.
jesperdja at 2007-7-16 13:48:14 > top of Java-index,Java Essentials,Java Programming...
# 6
> Java does have built-in support for ZIP compression.> > Lookup the documentation of package java.util.zip in> the API documentation.Especially the subclasses of DeflaterOutputStream and InflaterInputStreamKaj
kajbja at 2007-7-16 13:48:14 > top of Java-index,Java Essentials,Java Programming...
# 7
Ya the util.zip suggestion looks good will have a look at it and update if I have ne further queries thanx evry1
Tangoa at 2007-7-16 13:48:14 > top of Java-index,Java Essentials,Java Programming...