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 File |
getDefaultDirectory()
Get the default directory.
|
static String |
getDisplayName(File file)
Get the display name (e.g. of a system drive).
|
static File[] |
getFiles(File file,
boolean hiding)
Get the files of a directory.
|
static File |
getHomeDirectory()
Get the home directory.
|
static String[] |
getMacAddresses()
Get the mac address.
|
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 File |
getParentDirectory(File file)
Get the parent directory.
|
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()
public static File getHomeDirectory()
public static File getDefaultDirectory()
public static String[] getMacAddresses()
Copyright © 2013. All Rights Reserved.