public class SystemPropertyManager
extends java.lang.Object
Constructor and Description |
---|
SystemPropertyManager() |
Modifier and Type | Method and Description |
---|---|
static void |
close(java.io.InputStream inputStream) |
private static PropertiesWrapper |
loadProperties(java.io.File file) |
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) |
public static PropertiesWrapper loadProperties(java.io.InputStream inStream) throws java.io.IOException
inStream
- The stream to read from, will be closedjava.io.IOException
- If something bad happensprivate static PropertiesWrapper loadProperties(java.io.File file) throws java.io.IOException
java.io.IOException
public static void setSystemProperties(java.io.File file) throws java.io.IOException
java.io.IOException
public static java.io.File writePropertiesFile(java.util.Properties properties, java.io.File tempDirectory, java.lang.String name, boolean keepForkFiles) throws java.io.IOException
java.io.IOException
public static void writePropertiesFile(java.io.File file, java.lang.String name, java.util.Properties properties) throws java.io.IOException
java.io.IOException
public static void close(java.io.InputStream inputStream)