Class TempFileProps
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- com.inductiveautomation.ignition.common.util.TempFileProps
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.Object,java.lang.Object>
public class TempFileProps extends java.util.Properties
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 dirjava.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 characterjava.io.File
getTempDir()
Returns the temporary directory as a File object, or null if the temp dir wasn't found and couldn't be createdboolean
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)
-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Method Detail
-
getInstance
public static TempFileProps getInstance()
-
setProperty
public java.lang.Object setProperty(java.lang.String key, java.lang.String value)
- Overrides:
setProperty
in classjava.util.Properties
-
setMultipleProperties
public void setMultipleProperties(java.lang.String[] keys, java.lang.String[] values)
-
isTempDirAvailable
public boolean isTempDirAvailable()
Returns true iff getTempDir() will return non-null (the temp dir was created/found successfully)
-
getTempDir
public 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
-
getSubFilePath
public java.lang.String getSubFilePath(java.lang.String name)
Returns a path that points to a sub file/folder under the temp dir
-
getSubFilePath
public 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
-
-