public class SNonAndroid extends Object
Constructor and Description |
---|
SNonAndroid() |
Modifier and Type | Method and Description |
---|---|
static ResourceBundle |
findResourceBundle(String name,
Locale currentLocale,
ClassLoader cl)
Try to find a
ResourceBundle by trying Classloaders
from all calling Classes. |
static String |
getDisplayName(File file)
Get the display name (e.g. of a system drive).
|
static List<InetAddress> |
getNetworkIps()
Get the network ips.
|
static short |
getNetworkPrefixLength(InetAddress iadr)
Get the network prefix length for IPV4 address
24=C, 16=B, 8=A classes.
|
static boolean |
isFloppyDrive(File file)
Check if a file represents a floppy.
|
static boolean |
isGuiThread()
Test if a call is running on the swing thread.
|
static void |
openFile(String path)
Opens a File with the default application.
|
public static short getNetworkPrefixLength(InetAddress iadr)
iadr
- The address.public static boolean isFloppyDrive(File file)
public static String getDisplayName(File file)
public static ResourceBundle findResourceBundle(String name, Locale currentLocale, ClassLoader cl)
ResourceBundle
by trying Classloaders
from all calling Classes.name
- Name of the ResourceBundle to findcurrentLocale
- Name of the localecl
- the default classloaderResourceBundle
or null
.public static List<InetAddress> getNetworkIps()
public static void openFile(String path) throws IOException
path
- IOException
public static boolean isGuiThread()
Copyright © 2012. All Rights Reserved.