jcolibri.method.retrieve.NNretrieval.similarity.local.textual.compressionbased
Class GZipCompressor

java.lang.Object
  extended by jcolibri.method.retrieve.NNretrieval.similarity.local.textual.compressionbased.GZipCompressor
All Implemented Interfaces:
ICompressor

public class GZipCompressor
extends java.lang.Object
implements ICompressor

Class that implements the ICompressor interface, i.e. it defines a function for returning the size of an object (in this case, a String) after compression (in this casse, by GZip).

Author:
Derek Bridge 18/05/07

Constructor Summary
GZipCompressor()
           
 
Method Summary
 int getCompressedSize(java.lang.String s)
          Returns the size of a string after compression by GZip.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GZipCompressor

public GZipCompressor()
Method Detail

getCompressedSize

public int getCompressedSize(java.lang.String s)
Returns the size of a string after compression by GZip.

Specified by:
getCompressedSize in interface ICompressor
Parameters:
s - the string to be compressed
Returns:
the size of the string after compression by GZip

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es