public class TempFileProps
extends java.util.Properties
Modifier and Type | Method and Description |
---|---|
static TempFileProps |
getInstance() |
java.lang.String |
getSubFilePath(java.lang.String name)
Returns a path that points to a sub file/folder under the temp dir
|
java.lang.String |
getSubFilePath(java.lang.String name,
boolean trailingFileSep)
Returns a path that points to a sub file/folder under the temp dir, with
an optional trailing file separator character
|
java.io.File |
getTempDir()
Returns the temporary directory as a File object, or null if the temp dir
wasn't found and couldn't be created
|
boolean |
isTempDirAvailable()
Returns true iff getTempDir() will return non-null (the temp dir was
created/found successfully)
|
void |
setMultipleProperties(java.lang.String[] keys,
java.lang.String[] values) |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value) |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public static TempFileProps getInstance()
public java.lang.Object setProperty(java.lang.String key, java.lang.String value)
setProperty
in class java.util.Properties
public void setMultipleProperties(java.lang.String[] keys, java.lang.String[] values)
public boolean isTempDirAvailable()
public java.io.File getTempDir()
public java.lang.String getSubFilePath(java.lang.String name)
public java.lang.String getSubFilePath(java.lang.String name, boolean trailingFileSep)