Package io.vertigo.core.util
Class TempFile
- java.lang.Object
-
- java.io.File
-
- io.vertigo.core.util.TempFile
-
- All Implemented Interfaces:
Serializable
,Comparable<File>
public final class TempFile extends File
Fichier temporaire supprimé automatiquement après utilisation.- Author:
- npiedeloup
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Path
VERTIGO_TMP_DIR_PATH
Vertigo Temp directory path.-
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
-
Method Summary
-
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
-
-
-
-
Field Detail
-
VERTIGO_TMP_DIR_PATH
public static final Path VERTIGO_TMP_DIR_PATH
Vertigo Temp directory path.
-
-
Constructor Detail
-
TempFile
public TempFile(String prefix, String suffix, String subDirectory) throws IOException
Crée un fichier temporaire.- Parameters:
prefix
- Prefix du nom de fichiersuffix
- Suffix du nom de fichiersubDirectory
- Sous-répertoire des fichiers temporaires (null = répertoire temporaire de vertigo = ${java.io.tmpdir}/vertigo/tempFiles)- Throws:
IOException
- Exception IO
-
TempFile
public TempFile(String prefix, String suffix) throws IOException
Crée un fichier temporaire.- Parameters:
prefix
- Prefix du nom de fichiersuffix
- Suffix du nom de fichier- Throws:
IOException
- Exception IO
-
-