The java.util.zip package, introduced in JDK 1.3, provides a Java interface to the widely used ZLIB compression algorithms. The core of the package is a pair of classes, Inflator and Deflator , that wrap a native library that compresses and decompresses blocks of data. Two pairs of stream classes, ZipInputStream GZIPOutputStream , use Inflator and Deflator to read and write compressed data in the ubiquitous zip and gzip formats. The stream classes in java.util.zip work well for working with compressed files and similarly bounded data. They are, however,
Read full article from JavaTechniques » Compressing Data Sent Over a Socket
No comments:
Post a Comment