common
Class Toolkit
java.lang.Object
common.Toolkit
public class Toolkit
- extends java.lang.Object
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 |
Toolkit
public Toolkit()
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