org.apache.hadoop.io.compress.zlib
Class ZlibFactory

java.lang.Object
  extended by org.apache.hadoop.io.compress.zlib.ZlibFactory

public class ZlibFactory
extends Object

A collection of factories to create the right zlib/gzip compressor/decompressor instances.

Author:
Arun C Murthy

Constructor Summary
ZlibFactory()
           
 
Method Summary
static Compressor getZlibCompressor()
          Return the appropriate implementation of the zlib compressor.
static Decompressor getZlibDecompressor()
          Return the appropriate implementation of the zlib decompressor.
static boolean isNativeZlibLoaded()
          Check if native-zlib code is loaded and initialized correctly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZlibFactory

public ZlibFactory()
Method Detail

isNativeZlibLoaded

public static boolean isNativeZlibLoaded()
Check if native-zlib code is loaded and initialized correctly.

Returns:
true if native-zlib is loaded and initialized, else false

getZlibCompressor

public static Compressor getZlibCompressor()
Return the appropriate implementation of the zlib compressor.

Returns:
the appropriate implementation of the zlib compressor.

getZlibDecompressor

public static Decompressor getZlibDecompressor()
Return the appropriate implementation of the zlib decompressor.

Returns:
the appropriate implementation of the zlib decompressor.


Copyright © 2006 The Apache Software Foundation