public class MSystem extends Object
| Constructor and Description |
|---|
MSystem() |
| Modifier and Type | Method and Description |
|---|---|
static void |
beep()
makeshift system beep if awt.Toolkit.beep is not available.
|
static boolean |
equals(Object a,
Object b) |
static <A extends Annotation> |
findAnnotation(Class<?> clazz,
Class<A> annotation) |
static String |
findSource(int returns) |
static String |
getHostname()
Returns the name of the current system.
|
static String |
getMainClassName()
Return the name of the main class or null if not found.
|
static String |
getPid()
Returns the process id of the current application.
|
static String |
getTmpDirectory()
Return the system temp directory.
|
static Properties |
loadProperties(Object owner,
Properties properties,
String propertyFile)
Load and return a properties file.
|
static URL |
locateResource(Object owner,
String propertyFile)
1.
|
static String |
toString(Object sender,
Object... attributes) |
public static String getHostname()
public static String getPid()
public static Properties loadProperties(Object owner, Properties properties, String propertyFile)
owner - null or reference object for the class pathproperties - A pre-instanciated properties objectpropertyFile - Name of the properties file, e.g. something.propertiespublic static URL locateResource(Object owner, String propertyFile) throws IOException
owner - propertyFile - IOExceptionpublic static void beep()
public static String findSource(int returns)
public static String getMainClassName()
public static String getTmpDirectory()
public static <A extends Annotation> A findAnnotation(Class<?> clazz, Class<A> annotation)
Copyright © 2014. All rights reserved.