|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.gv.egiz.pdfas.utils.ConfigUtils
| Method Summary | |
static String |
assertFileSeparator(String path)
|
static String |
deployDefaultConfiguration()
Deploys the default configuration to the user's home directory to the subdirectory specified by Constants.Constants.USERHOME_CONFIG_FOLDER. |
static String |
deployDefaultConfiguration(boolean overwriteExisting)
Deploys the default configuration to the user's home directory to the subdirectory specified by Constants.Constants.USERHOME_CONFIG_FOLDER. |
static String |
deployDefaultConfiguration(String destination,
boolean overwriteExisting)
Deploys the default configuration to the given destination folder. |
static void |
initializeLogger()
|
static void |
printConfigInfo()
|
static void |
printConfigInfo(org.apache.commons.logging.Log logger)
|
static boolean |
toFile(InputStream inputStream,
File file)
|
static void |
writeInputStreamToOutputStream(InputStream inputStream,
OutputStream outputStream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static String deployDefaultConfiguration(String destination,
boolean overwriteExisting)
throws ConfigUtilsException
destination - The destination folder.overwriteExisting - If set true an already existing configuration is overwritten. If false nothing is being copied if the destination folder already exists.
null if the configuration has NOT been deployed.
ConfigUtilsException - Thrown if there was an error during the deployment of the configuration.
public static String deployDefaultConfiguration(boolean overwriteExisting)
throws ConfigUtilsException
Constants.Constants.USERHOME_CONFIG_FOLDER.
overwriteExisting - If set true an already existing configuration is overwritten. If false nothing is being copied if the destination folder already exists.
null if the configuration has NOT been deployed.
ConfigUtilsException - Thrown if there was an error during the deployment of the configuration.Constants.USERHOME_CONFIG_FOLDER
public static String deployDefaultConfiguration()
throws ConfigUtilsException
Constants.Constants.USERHOME_CONFIG_FOLDER.
null if the configuration has NOT been deployed.
ConfigUtilsException - Thrown if there was an error during the deployment of the configuration.Constants.USERHOME_CONFIG_FOLDER
public static boolean toFile(InputStream inputStream,
File file)
throws IOException
IOException
public static void writeInputStreamToOutputStream(InputStream inputStream,
OutputStream outputStream)
throws IOException
IOExceptionpublic static String assertFileSeparator(String path)
public static void initializeLogger()
public static void printConfigInfo(org.apache.commons.logging.Log logger)
public static void printConfigInfo()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||