FileDocCategorySizeDatePackage
TempStorage.javaAPI DocAndroid 1.5 API2671Wed May 06 22:42:46 BST 2009org.apache.james.mime4j.util

TempStorage

public abstract class TempStorage extends Object
version
$Id: TempStorage.java,v 1.2 2004/10/02 12:41:11 ntherning Exp $

Fields Summary
private static Log
log
private static TempStorage
inst
Constructors Summary
Methods Summary
public static org.apache.james.mime4j.util.TempStoragegetInstance()

    
     
        
        String clazz = System.getProperty("org.apache.james.mime4j.tempStorage");
        try {
            
            if (inst != null) {
                inst = (TempStorage) Class.forName(clazz).newInstance();
            }
            
        } catch (Throwable t) {
            log.warn("Unable to create or instantiate TempStorage class '" 
                      + clazz + "' using SimpleTempStorage instead", t);
        }

        if (inst == null) {
            inst = new SimpleTempStorage();            
        }
    
        return inst;
    
public abstract TempPathgetRootTempPath()
Gets the root temporary path which should be used to create new temporary paths or files.

return
the root temporary path.

public static voidsetInstance(org.apache.james.mime4j.util.TempStorage inst)

        if (inst == null) {
            throw new NullPointerException("inst");
        }
        TempStorage.inst = inst;