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

TempPath

public interface TempPath
version
$Id: TempPath.java,v 1.2 2004/10/02 12:41:11 ntherning Exp $

Fields Summary
Constructors Summary
Methods Summary
public TempFilecreateTempFile()
Creates a new temporary file. Wheter it will be be created in memory or on disk is up to to the implementation. The prefix will be empty and the suffix will be .tmp if created on disk.

return
the temporary file.

public TempFilecreateTempFile(java.lang.String prefix, java.lang.String suffix)
Creates a new temporary file. Wheter it will be be created in memory or on disk is up to to the implementation. The prefix and suffix can be set by the user.

param
prefix the prefix to use. null gives no prefix.
param
suffix the suffix to use. null gives .tmp.
return
the temporary file.

public TempFilecreateTempFile(java.lang.String prefix, java.lang.String suffix, boolean allowInMemory)
Creates a new temporary file. Wheter it will be be created in memory or on disk can be specified using the allowInMemory parameter. If the implementation doesn't support in-memory files the new file will be created on disk. The prefix and suffix can be set by the user.

param
prefix the prefix to use. null gives no prefix.
param
suffix the suffix to use. null gives .tmp.
param
allowInMemory if true the file MIGHT be created in memory if supported by the implentation. If false the file MUST be created on disk.
return
the temporary file.

public org.apache.james.mime4j.util.TempPathcreateTempPath()

public org.apache.james.mime4j.util.TempPathcreateTempPath(java.lang.String prefix)

public voiddelete()

public java.lang.StringgetAbsolutePath()