railo.commons.io.res.type.compress
Class Compress

java.lang.Object
  extended by railo.commons.io.res.type.compress.Compress

public final class Compress
extends Object


Field Summary
static int FORMAT_TAR
           
static int FORMAT_TBZ2
           
static int FORMAT_TGZ
           
static int FORMAT_ZIP
           
 
Constructor Summary
Compress(Resource file, int format, boolean caseSensitive)
          private Constructor of the class, will be invoked be getInstance
 
Method Summary
 Resource getCompressFile()
           
static Compress getInstance(Resource zipFile, int format, boolean caseSensitive)
          return zip instance matching the zipfile, singelton isnatce only 1 zip for one file
 Resource getRamProviderResource(String path)
           
 void synchronize(boolean async)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMAT_ZIP

public static final int FORMAT_ZIP
See Also:
Constant Field Values

FORMAT_TAR

public static final int FORMAT_TAR
See Also:
Constant Field Values

FORMAT_TGZ

public static final int FORMAT_TGZ
See Also:
Constant Field Values

FORMAT_TBZ2

public static final int FORMAT_TBZ2
See Also:
Constant Field Values
Constructor Detail

Compress

public Compress(Resource file,
                int format,
                boolean caseSensitive)
private Constructor of the class, will be invoked be getInstance

Parameters:
file -
format -
caseSensitive -
Method Detail

getInstance

public static Compress getInstance(Resource zipFile,
                                   int format,
                                   boolean caseSensitive)
return zip instance matching the zipfile, singelton isnatce only 1 zip for one file

Parameters:
zipFile -
format -
caseSensitive -
Returns:

getRamProviderResource

public Resource getRamProviderResource(String path)

getCompressFile

public Resource getCompressFile()
Returns:
the zipFile

synchronize

public void synchronize(boolean async)


Copyright © 2012 Railo