common
Class Toolkit

java.lang.Object
  extended by common.Toolkit

public class Toolkit
extends java.lang.Object


Constructor Summary
Toolkit()
           
 
Method Summary
static void executeSQLFromFile(java.lang.String filename, java.sql.Connection con)
           
static java.lang.String formatSize(long bytes)
           
static java.lang.String getLocalIP()
          returns the local IP address, or null if cannot be determinated
static java.lang.String getOuterIP()
          Returns the outer IP address, or null if cannot be determinated.
static boolean isMyIPPublic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Toolkit

public Toolkit()
Method Detail

getLocalIP

public static java.lang.String getLocalIP()
returns the local IP address, or null if cannot be determinated


getOuterIP

public static java.lang.String getOuterIP()
Returns the outer IP address, or null if cannot be determinated.


isMyIPPublic

public static boolean isMyIPPublic()
                            throws java.io.IOException
Throws:
java.io.IOException

formatSize

public static java.lang.String formatSize(long bytes)

executeSQLFromFile

public static void executeSQLFromFile(java.lang.String filename,
                                      java.sql.Connection con)
                               throws java.io.IOException,
                                      java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException