Class SystemPropertyManager


  • public class SystemPropertyManager
    extends java.lang.Object
    Author:
    Kristian Rosenvold
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PropertiesWrapper loadProperties​(java.io.InputStream inStream)
      Loads the properties, closes the stream
      static void setSystemProperties​(java.io.File file)  
      static void writePropertiesFile​(java.io.File file, java.lang.String name, java.util.Properties properties)  
      static java.io.File writePropertiesFile​(java.util.Properties properties, java.io.File tempDirectory, java.lang.String name, boolean keepForkFiles)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemPropertyManager

        public SystemPropertyManager()
    • Method Detail

      • loadProperties

        public static PropertiesWrapper loadProperties​(java.io.InputStream inStream)
                                                throws java.io.IOException
        Loads the properties, closes the stream
        Parameters:
        inStream - The stream to read from, will be closed
        Returns:
        The properties
        Throws:
        java.io.IOException - If something bad happens
      • setSystemProperties

        public static void setSystemProperties​(java.io.File file)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writePropertiesFile

        public static java.io.File writePropertiesFile​(java.util.Properties properties,
                                                       java.io.File tempDirectory,
                                                       java.lang.String name,
                                                       boolean keepForkFiles)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • writePropertiesFile

        public static void writePropertiesFile​(java.io.File file,
                                               java.lang.String name,
                                               java.util.Properties properties)
                                        throws java.io.IOException
        Throws:
        java.io.IOException