SystemUtils { public static String getClassFileName(final Class aClass) { Guardian.assertNotNull("aClass", aClass); final String qualClassName = aClass.getName(); final int pos = qualClassName.lastIndexOf('.'); final String className; if (pos > 0) { className = qualClassName.substring(pos + 1); } else { className = qualClassName; } return className + ".class"; }  static String getUserName(); static File getUserHomeDir(); static String getApplicationHomepageUrl(); static File getApplicationDataDir(); static File getApplicationDataDir(boolean force); static String getApplicationContextId(); static String getApplicationName(); static File getCurrentWorkingDir(); static File[] getClassPathFiles(); static File getApplicationHomeDir(); static String getApplicationHomePropertyName(); static File getApplicationHomeDir(final URL url); static String getClassFileName(final Class aClass); @Deprecated static File getBeamHomeDir(); static File getDefaultBeamCacheDir(); static String convertToLocalPath(String urlPath); static String createHumanReadableExceptionMessage(final Exception e); static void copyToClipboard(final String text); static void copyToClipboard(final Image image); static boolean isRunningOnMacOS(); static Iterable<S> loadServices(Class<S> serviceType); static Iterable<S> loadServices(Class<S> serviceType, ClassLoader classLoader); static String getBuildNumber(); static int getLogLevel(String logLevelStr); @Deprecated static Class<?> loadHdf4Lib(Class<?> callerClass); @Deprecated static Class<?> loadHdf5Lib(Class<?> callerClass); static void init3rdPartyLibs(ClassLoader cl); static String getApplicationRemoteVersionUrl(); @Deprecated
    static final String BEAM_HOME_PAGE; @Deprecated
    static final String BEAM_HOME_PROPERTY_NAME; @Deprecated
    static final String BEAM_PLUGIN_PATH_PROPERTY_NAME; static final String BEAM_PARALLELISM_PROPERTY_NAME; static final String LAX_INSTALL_DIR_PROPERTY_NAME; static final String LS; static final int LL_DEBUG; static final int LL_INFO; static final int LL_WARNING; static final int LL_ERROR; static final String LLS_DEBUG; static final String LLS_INFO; static final String LLS_WARNING; static final String LLS_ERROR; static final String EXTENSION_DIR_NAME; static final String AUXDATA_DIR_NAME; static final String CACHE_DIR_NAME; }
@Test public void testClassFileName() { assertEquals("Date.class", SystemUtils.getClassFileName(java.util.Date.class)); assertEquals("InputStream.class", SystemUtils.getClassFileName(java.io.InputStream.class)); assertEquals("SystemUtils.class", SystemUtils.getClassFileName(SystemUtils.class)); final URL url = SystemUtils.class.getResource(SystemUtils.getClassFileName(SystemUtils.class)); assertNotNull(url); assertTrue("url = " + url.getPath(), url.getPath().endsWith("/org/esa/beam/util/SystemUtils.class")); }