Class SystemPropertyManager


  • public class SystemPropertyManager
    extends java.lang.Object
    • 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
      • loadProperties

        private static PropertiesWrapper loadProperties​(java.io.File file)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • 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