argos.util
Class Util
java.lang.Object
argos.util.Util
public class Util
- extends Object
Constructor Summary |
Util()
|
Method Summary |
static void |
cleanDir(File file)
|
static void |
copyFile(File inFile,
File outFile)
|
static List<File> |
extractFromJar(File jar,
String fromFolder,
String toFolder,
boolean removeFirstDir)
|
static JMXConnector |
listenTo(String who,
String url,
NotificationListener me,
Serializable handback)
|
static void |
unlistenTo(String who,
String url,
NotificationListener me)
|
static void |
writeResourceToFile(String resource,
String outFilename)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
Util
public Util()
extractFromJar
public static List<File> extractFromJar(File jar,
String fromFolder,
String toFolder,
boolean removeFirstDir)
throws IOException
- Throws:
IOException
copyFile
public static void copyFile(File inFile,
File outFile)
throws IOException
- Throws:
IOException
cleanDir
public static void cleanDir(File file)
listenTo
public static JMXConnector listenTo(String who,
String url,
NotificationListener me,
Serializable handback)
throws MalformedObjectNameException,
MalformedURLException,
InstanceNotFoundException,
IOException
- Throws:
MalformedObjectNameException
MalformedURLException
InstanceNotFoundException
IOException
unlistenTo
public static void unlistenTo(String who,
String url,
NotificationListener me)
throws Exception,
InstanceNotFoundException,
IOException
- Throws:
Exception
InstanceNotFoundException
IOException
writeResourceToFile
public static void writeResourceToFile(String resource,
String outFilename)
throws IOException
- Throws:
IOException
Copyright © 2004-2007 University of Troms?. All Rights Reserved.