| java.lang.Object com.tagtraum.jo.JoFileTransferCompression
JoFileTransferCompression | public class JoFileTransferCompression implements I_JoFileTransferCompression,C_Jo(Code) | | Manages the creation and deletion of compressed files.
author: Hendrik Schreiber version: 1.1beta1 $Id: JoFileTransferCompression.java,v 1.5 2004/04/16 01:30:04 hendriks73 Exp $ |
Method Summary | |
public void | addAlgorithm(String anAlgorithm) Adds an algorithm. | public void | addExtension(String anExtension) Registers an extension as suitable for compression. | public boolean | containsExtension(String anExtension) Indicates whether the extension is registered. | public String | getAlgorithm(String filename, HttpServletRequest req) Returns a suitable algorithm for the given request or null,
if there is none. | public Constructor | getAlgorithmConstructor(String anAlgorithmName) Returns the OutputStream constructor of the algorithm. | public Iterator | getAlgorithmNames() Returns a sorted iterator of the registered algorithms. | public File | getCompressedFile(File file, HttpServletRequest req, long fileLastModified) | public File | getCompressedFile(File file, HttpServletRequest req) | public File | getCompressedFile(File file, HttpServletRequest req, String algorithm) | public File | getCompressedFile(File file, HttpServletRequest req, long fileLastModified, String algorithm) Returns the compressed file or null. | public Iterator | getExtensions() Returns an Iterator for the registered extensions. | public String | getRepository() Returns the filename of the repository. | public void | removeAlgorithm(String anAlgorithm) Removes an algorithm. | public void | removeExtension(String anExtension) Unregisters an extension. | public void | setRepository(String aRepositoryDirName) Sets the filename of the repository. |
compressableFilesCache | protected HashSet compressableFilesCache(Code) | | Cache of compressable files.
|
JoFileTransferCompression | public JoFileTransferCompression()(Code) | | |
addAlgorithm | public void addAlgorithm(String anAlgorithm)(Code) | | Adds an algorithm. Will throw an IllegalArgumentException if the
algorithm is not supported.
|
addExtension | public void addExtension(String anExtension)(Code) | | Registers an extension as suitable for compression.
|
containsExtension | public boolean containsExtension(String anExtension)(Code) | | Indicates whether the extension is registered.
|
getAlgorithmConstructor | public Constructor getAlgorithmConstructor(String anAlgorithmName)(Code) | | Returns the OutputStream constructor of the algorithm.
|
getAlgorithmNames | public Iterator getAlgorithmNames()(Code) | | Returns a sorted iterator of the registered algorithms.
|
getExtensions | public Iterator getExtensions()(Code) | | Returns an Iterator for the registered extensions.
|
getRepository | public String getRepository()(Code) | | Returns the filename of the repository.
|
removeAlgorithm | public void removeAlgorithm(String anAlgorithm)(Code) | | Removes an algorithm.
|
removeExtension | public void removeExtension(String anExtension)(Code) | | Unregisters an extension.
|
setRepository | public void setRepository(String aRepositoryDirName)(Code) | | Sets the filename of the repository.
|
|
|