toxTree.io
Class Tools

java.lang.Object
  extended by toxTree.io.Tools

public class Tools
extends java.lang.Object


Constructor Summary
protected Tools()
           
 
Method Summary
static java.io.File getFileFromResource(java.lang.String resource)
          Extract a file from resource and copies it into temporary directory.
static java.io.File getFileFromResourceSilent(java.lang.String resource)
          Same as getFileFromResource(String) but hides the exception
static javax.swing.ImageIcon getImage(java.lang.String filename)
          Loads image
static void openURL(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

protected Tools()
Method Detail

getFileFromResource

public static java.io.File getFileFromResource(java.lang.String resource)
                                        throws java.lang.Exception
Extract a file from resource and copies it into temporary directory. Returns the file.

Parameters:
resource -
Returns:
Throws:
java.lang.Exception

getFileFromResourceSilent

public static java.io.File getFileFromResourceSilent(java.lang.String resource)
Same as getFileFromResource(String) but hides the exception

Parameters:
resource -
Returns:

getImage

public static javax.swing.ImageIcon getImage(java.lang.String filename)
Loads image


openURL

public static void openURL(java.lang.String url)
                    throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.