Class 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
    • Field Summary

      • Fields inherited from class java.util.Properties

        defaults
    • 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 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)  
      • 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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • setProperty

        public java.lang.Object setProperty​(java.lang.String key,
                                            java.lang.String value)
        Overrides:
        setProperty in class java.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