|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.net.NetTools
public class NetTools
Reusable static methods that do nifty network stuff.
| Constructor Summary | |
|---|---|
NetTools()
|
|
| Method Summary | |
|---|---|
static void |
disconnect(java.net.URLConnection urlConnection)
Free resources as possible on the URLConnection passed in. |
static java.net.InetAddress[] |
getAllInetAddressesForLocalhost()
|
static java.lang.String |
isCharsetSupported(java.lang.String mimeType)
Seek a charset specification in the MimeType header of the HTTP request. |
static java.lang.String |
localHost()
local host address (parse out only IP address) |
static java.net.InetAddress[] |
wrapSingleAddress(java.net.InetAddress address)
Convienence method for getting a single-element array of InetAddresses for servers that normally take an array, but when only one is available. |
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NetTools()
| Method Detail |
|---|
public static java.lang.String isCharsetSupported(java.lang.String mimeType)
mimeType - The Mime Type header.
public static void disconnect(java.net.URLConnection urlConnection)
urlConnection - a reference to a URLConnection.public static java.lang.String localHost()
public static java.net.InetAddress[] getAllInetAddressesForLocalhost()
public static final java.net.InetAddress[] wrapSingleAddress(java.net.InetAddress address)
address - the address to wrap.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||