eu.clarin.cmdi.mdservice.action
Class Admin
java.lang.Object
eu.clarin.cmdi.mdservice.action.Admin
public class Admin
- extends java.lang.Object
Helper class, main-class to run as command-line java-app for testing
- Author:
- vronk
Field Summary |
private static java.util.Properties |
config
|
private static java.lang.String |
config_path
|
Constructor Summary |
Admin()
|
Method Summary |
static void |
copyStreams(java.io.InputStream in,
java.io.OutputStream out)
|
static java.util.Properties |
getConfig()
|
static void |
loadConfig()
|
static void |
loadConfig(java.lang.String configPath)
|
static void |
main(java.lang.String[] args)
|
static void |
notifyUser(java.lang.String msg)
|
static void |
writeToFile(java.lang.String path,
java.io.InputStream in)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config_path
private static java.lang.String config_path
config
private static java.util.Properties config
Admin
public Admin()
main
public static void main(java.lang.String[] args)
loadConfig
public static void loadConfig()
loadConfig
public static void loadConfig(java.lang.String configPath)
getConfig
public static java.util.Properties getConfig()
notifyUser
public static void notifyUser(java.lang.String msg)
copyStreams
public static void copyStreams(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
writeToFile
public static void writeToFile(java.lang.String path,
java.io.InputStream in)