FileDocCategorySizeDatePackage
FindInSameDirectoryUsingJarBaseName.javaAPI DocFobs4JMF API 0.4.1660Tue Dec 19 14:28:20 GMT 2006com.moesol.bindings

FindInSameDirectoryUsingJarBaseName

public class FindInSameDirectoryUsingJarBaseName extends FindInSameDirectory

Fields Summary
Constructors Summary
Methods Summary
java.lang.StringcomputeBaseName(java.lang.String jar)

		return jar.replaceAll("\\.[^.]+$", "");
	
protected java.lang.StringtemplateGetMappedName(java.lang.Class classInJar, java.lang.String libraryName)

		URL url = classInJar.getResource(getClassAsResourcePath());
		if ("jar".equals(url.getProtocol())) {
			File jarFile = computeJarFile(url);
			String jar = jarFile.getName();
			String baseName = computeBaseName(jar);
			return System.mapLibraryName(baseName);
		}
		throw new UnsatisfiedLinkError("not jar url");