argos.util
Class Util

java.lang.Object
  extended by argos.util.Util

public class Util
extends Object


Field Summary
static int BUFFER_SIZE
           
 
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
 

Field Detail

BUFFER_SIZE

public static final int BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

Util

public Util()
Method Detail

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.